healthchecks
This commit is contained in:
+3
-1
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user