From 34b1a19478441976fb54cd4b5e31472d9bfb11f7 Mon Sep 17 00:00:00 2001 From: Ben Sarmiento Date: Sat, 18 Nov 2023 23:25:02 +0100 Subject: [PATCH] remove health check --- Dockerfile | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index b04c559..64a7db2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,11 +15,6 @@ WORKDIR /app COPY --from=builder /app/zurg . RUN apk add --no-cache upx RUN upx --brute zurg -# Create a health check script that extracts the port from the config file -RUN echo $'#!/bin/sh\n\ -port=$(yaml read /app/config.yml port)\n\ -nc -z localhost $port || exit 1' > /app/healthcheck.sh && \ - chmod +x /app/healthcheck.sh # Final stage FROM alpine:3 @@ -27,16 +22,12 @@ WORKDIR /app # Copy the obfuscated binary from the obfuscator stage COPY --from=obfuscator /app/zurg . -COPY --from=obfuscator /app/healthcheck.sh . # Copy the rest of the application files, including the config.yml COPY config.yml.example /app/config.yml # Install runtime dependencies and configure FUSE -RUN apk add --no-cache fuse3 netcat-openbsd yaml-cpp \ +RUN apk add --no-cache fuse3 \ && echo 'user_allow_other' >> /etc/fuse.conf -# Use the script for the health check -HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 CMD /app/healthcheck.sh - ENTRYPOINT ["./zurg"]