Skip to content

Commit

Permalink
Changed log location
Browse files Browse the repository at this point in the history
  • Loading branch information
mhaswell-bcgov committed Jul 26, 2024
1 parent d2ec535 commit 02caced
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ COPY --chown=node . .

RUN npm i --omit=optional && npm run build && npm i --omit=dev --omit=optional

RUN mkdir -p /var/log/app/ && touch /var/log/app/access.log
RUN touch access.log

ENV HOST=0.0.0.0 PORT=3000 SMTP_PORT=2525 NODE_ENV=production NOTIFYBC_WORKER_PROCESS_COUNT=1

EXPOSE ${PORT} ${SMTP_PORT}
CMD [ "/bin/sh", "-c", "node . > /var/log/app/access.log 2>&1" ]
CMD [ "/bin/sh", "-c", "node . > /home/node/app/access.log 2>&1" ]

0 comments on commit 02caced

Please sign in to comment.