Skip to content

Commit

Permalink
Fixed wrong path to log file
Browse files Browse the repository at this point in the history
  • Loading branch information
mhaswell-bcgov committed Aug 1, 2024
1 parent 04a5bbe commit f22a093
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 @@ -12,7 +12,7 @@ RUN mkdir -p /home/node/app

WORKDIR /home/node/app

RUN touch /home/node/app/logs/access.log && chmod 777 /home/node/app/access.log
RUN mkdir /home/node/app/logs/ && touch /home/node/app/logs/access.log && chmod 777 /home/node/app/logs/access.log

# Bundle app source code
COPY --chown=node . .
Expand All @@ -22,4 +22,4 @@ RUN npm i --omit=optional && npm run build && npm i --omit=dev --omit=optional
ENV HOST=0.0.0.0 PORT=3000 SMTP_PORT=2525 NODE_ENV=production NOTIFYBC_WORKER_PROCESS_COUNT=1

EXPOSE ${PORT} ${SMTP_PORT}
CMD node . 2>&1 | tee /home/node/app/access.log
CMD node . 2>&1 | tee /home/node/app/logs/access.log

0 comments on commit f22a093

Please sign in to comment.