Skip to content

Commit

Permalink
added additional metadata to our dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Sep 12, 2023
1 parent fa6863d commit 690661c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,10 @@ COPY --from=builder /etc/passwd /etc/passwd
# Use an unprivileged user
USER appuser

# metadata
EXPOSE 50051
HEALTHCHECK --interval=5m --timeout=3s \
CMD wget --no-verbose --tries=1 --spider http://localhost:50051/health && exit 0 || exit 1

# Run the main binary
CMD ["/backend"]

0 comments on commit 690661c

Please sign in to comment.