Skip to content

Commit

Permalink
Use exec form in CMD instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
flenny committed Oct 10, 2024
1 parent 7db3ebe commit ad6ca02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ ENV LC_ALL=C.UTF-8

COPY --from=build /app/publish .

HEALTHCHECK CMD curl --fail http://localhost:8080/health || exit 1
HEALTHCHECK CMD ["bash", "-c", "curl --fail http://localhost:8080/health || exit 1"]

# Switch to the non-root user 'app' defined in the base image
USER $APP_UID
Expand Down

0 comments on commit ad6ca02

Please sign in to comment.