Skip to content

Commit

Permalink
Simpliefied docker file for env config for web
Browse files Browse the repository at this point in the history
  • Loading branch information
zachsa committed Jul 12, 2022
1 parent a088592 commit f3aa4d7
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@ ARG MONGO_DB
ARG MONGO_USERNAME
ARG MONGO_PASSWORD
ARG TECHNICAL_CONTACT
ARG NODE_LOADER_CONFIG=loaders/config.js

##############
# USER CONFIG (runtime)
# RUNTIME
##############

ENV NODE_ENV=$NODE_ENV
ENV DEPLOYMENT_ENV=$DEPLOYMENT_ENV
ENV TZ=$TZ
ENV ALLOWED_ORIGINS=$ALLOWED_ORIGINS
ENV MONGO_HOST=$MONGO_HOST
ENV MONGO_DB=$MONGO_DB
Expand Down Expand Up @@ -100,15 +98,4 @@ RUN cp -r public/* .cache/
EXPOSE 3000

# Start command
CMD \
DEPLOYMENT_ENV=$DEPLOYMENT_ENV \
TZ=$TZ \
NODE_LOADER_CONFIG=loaders/config.js \
ALLOWED_ORIGINS=$ALLOWED_ORIGINS \
MONGO_HOST=$MONGO_HOST \
MONGO_DB=$MONGO_DB \
MONGO_USERNAME=$MONGO_USERNAME \
MONGO_PASSWORD=$MONGO_PASSWORD \
node \
--loader @node-loader/core \
server
CMD node --loader @node-loader/core server

0 comments on commit f3aa4d7

Please sign in to comment.