diff --git a/Dockerfile b/Dockerfile index 36cad0e..2a1aa73 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Base-Image -FROM alpine:latest +FROM alpine:3.20 # Pakete installieren RUN apk add --no-cache build-base gcc curl vim net-tools @@ -23,6 +23,10 @@ VOLUME /output RUN adduser -D appuser USER appuser +#health +HEALTHCHECK --interval=5s --timeout=3s --retries=3 \ + CMD pgrep deployment || exit 1 + # Ausgabe wird ins Container-Dateisystem geschrieben ENTRYPOINT ["/bin/bash", "-c"] CMD ["./deployment 10 > /output/output.txt && tail -f /output/output.txt"] \ No newline at end of file