Skip to content

Commit

Permalink
Update dockerfile to respect database name variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
PhlexPlexico committed Apr 5, 2024
1 parent 9d7f03f commit 3b8f7c5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ WORKDIR /Get5API
COPY . .
RUN yarn
RUN yarn build

# set config with env variables, build, and run application
CMD envsubst < /Get5API/config/production.json.template > /Get5API/config/production.json && \
yarn migrate-create-prod && \
yarn db-migrate MYSQL_FLAGS=\"-CONNECT_WITH_DB\" --env production --config config/production.json db:create $DATABASE && \
yarn migrate-prod-upgrade && \
yarn startprod && \
yarn pm2 logs

0 comments on commit 3b8f7c5

Please sign in to comment.