Skip to content

Commit

Permalink
docker: fixup healthcheck and ports
Browse files Browse the repository at this point in the history
- increase healthcheck start period
- use proper port (7567)
  • Loading branch information
makinbacon21 committed Sep 28, 2023
1 parent 75fced8 commit f7a69c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

FROM node:18.18.0-bookworm-slim

ENV PORT=3001
EXPOSE 3001
ENV PORT=7567
EXPOSE 7567

RUN apt update
RUN apt install -y curl

HEALTHCHECK --interval=5s --timeout=30s --start-period=5s --retries=3 CMD [ "curl http://localhost/" ]
HEALTHCHECK --interval=5s --timeout=30s --start-period=30s --retries=3 CMD [ "curl", "http://127.0.0.1:7567" ]

WORKDIR /sauce-app

Expand Down

0 comments on commit f7a69c9

Please sign in to comment.