healthchecks

This commit is contained in:
Lewis Crichton
2023-05-24 10:14:04 +01:00
parent b0e6360e2f
commit 4fabb38dd9
2 changed files with 12 additions and 2 deletions
+3 -1
View File
@@ -10,7 +10,9 @@ RUN go build -o backend
FROM alpine:latest
RUN apk --no-cache add ca-certificates
RUN apk --no-cache add ca-certificates curl
COPY --from=builder /app/backend /backend
HEALTHCHECK --interval=15s --timeout=3s CMD curl -f http://localhost:8080/v1/ || exit 1
CMD ["/backend"]