Skip to content

Commit

Permalink
#44 add curl to enable healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
kunduso committed May 7, 2024
1 parent b6c47c9 commit 6fa2d7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ WORKDIR /usr/src/app
# Install dependencies from packages.json
RUN npm install

# Install curl for healthcheck
RUN apk --no-cache add curl
# Add health check
HEALTHCHECK --interval=30s --timeout=5s --retries=3 CMD curl -f http://localhost:8080 || exit 1

Expand Down

0 comments on commit 6fa2d7f

Please sign in to comment.