mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-11-13 05:47:12 +00:00
add health check for image
This commit is contained in:
@@ -7,6 +7,9 @@ RUN go build -o /out/mycorrhiza .
|
|||||||
FROM alpine/git as app
|
FROM alpine/git as app
|
||||||
EXPOSE 1737
|
EXPOSE 1737
|
||||||
|
|
||||||
|
RUN apk add --no-cache curl
|
||||||
|
HEALTHCHECK CMD curl -f localhost:1737 || exit 1
|
||||||
|
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
RUN mkdir wiki
|
RUN mkdir wiki
|
||||||
COPY --from=build /out/mycorrhiza /usr/bin
|
COPY --from=build /out/mycorrhiza /usr/bin
|
||||||
|
|||||||
Reference in New Issue
Block a user