Replace curl healthcheck with wget
This commit is contained in:
@@ -6,11 +6,10 @@ RUN ["zola", "build"]
|
|||||||
FROM ghcr.io/static-web-server/static-web-server:2.40.1-alpine
|
FROM ghcr.io/static-web-server/static-web-server:2.40.1-alpine
|
||||||
ENV SERVER_HEALTH=true
|
ENV SERVER_HEALTH=true
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
RUN apk --no-cache add curl
|
|
||||||
COPY --from=zola /project/public /public
|
COPY --from=zola /project/public /public
|
||||||
HEALTHCHECK \
|
HEALTHCHECK \
|
||||||
--interval=10s \
|
--interval=10s \
|
||||||
--timeout=5s \
|
--timeout=5s \
|
||||||
--start-period=3s \
|
--start-period=3s \
|
||||||
--retries=3 \
|
--retries=3 \
|
||||||
CMD ["curl", "-s", "http://localhost/health"]
|
CMD ["wget", "http://localhost/health", "-O", "/dev/null", "-q"]
|
||||||
|
|||||||
Reference in New Issue
Block a user