Skip to content

Commit

Permalink
chore: add HEALTHCHECK
Browse files Browse the repository at this point in the history
  • Loading branch information
solufa committed Jun 10, 2024
1 parent 6b813ae commit 6ff73bf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ RUN npm ci --prefix server

COPY . .
ARG NEXT_PUBLIC_FIREBASE_CONFIG
ARG API_BASE_PATH
ARG DATABASE_URL
ENV API_BASE_PATH
RUN npm run build

CMD npm start
HEALTHCHECK --interval=5s --timeout=5s --retries=3 CMD curl -f http://localhost:$PORT/$API_BASE_PATH/health && curl -f http://localhost:$PORT || exit 1

CMD ["npm", "start"]

0 comments on commit 6ff73bf

Please sign in to comment.