Skip to content

Commit f49fc09

Browse files
authored
Merge pull request #679 from TerriaJS/fix-ci-scripts
Copy create-docker-context-for-node-component script from magda docker-utils for ci.terria.io builds
2 parents 85127fd + 85274e6 commit f49fc09

File tree

7 files changed

+557
-10
lines changed

7 files changed

+557
-10
lines changed

deploy/docker/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ FROM node:16
44
RUN mkdir -p /usr/src/app && mkdir -p /etc/config/client
55
WORKDIR /usr/src/app/component
66
COPY . /usr/src/app
7-
RUN rm wwwroot/config.json && ln -s /etc/config/client/config.json wwwroot/config.json
87

98
EXPOSE 3001
10-
11-
CMD [ "node", "./node_modules/terriajs-server/lib/app.js", "--config-file", "devserverconfig.json" ]
9+
ENV NODE_ENV=production
10+
CMD [ "node", "./node_modules/terriajs-server/lib/app.js", "--config-file", "serverconfig.json" ]

0 commit comments

Comments
 (0)