Skip to content

Commit

Permalink
Add curl to Docker image for health checks
Browse files Browse the repository at this point in the history
This allows you to define a health check for the container image in
terms of a `curl` command.
  • Loading branch information
sds committed Oct 31, 2024
1 parent a4c367e commit 6426a1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile.relay
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ ENV NODE_ENV production
RUN mkdir /home/node/app
WORKDIR /home/node/app

RUN apk add --no-cache curl # For health checks

# Copy results from previous stage.
# The base image is same as the build stage, so it is safe to copy node_modules over to this stage.
COPY --chown=node:node --from=prune /home/node/app/out/json/ .
Expand Down

0 comments on commit 6426a1a

Please sign in to comment.