From f195da702171197fd9b99b97099a341b05c6efb0 Mon Sep 17 00:00:00 2001 From: Fabian Guth Date: Sat, 25 Apr 2026 13:52:43 +0000 Subject: [PATCH] Mehr oder weniger fertig hab noch keine erlaubniss auf output, ansonsten fertig --- Dockerfile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ccdc023..089cd0c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,12 +19,22 @@ FROM alpine AS runtime RUN apk add --no-cache bash +#RUN adduser -u 1000 -g 1000 -D -s /bin/bash fabian + WORKDIR /app COPY --from=build_stage /app/deployment . # Verzeichnis für Ausgabe anlegen -RUN mkdir /output +#USER root +RUN mkdir /output && chown 1000:1000 /output +#USER fabian +USER 1000:1000 + +VOLUME ["/output"] + +#Healthcheck +HEALTHCHECK --interval=30s CMD test -f /output/output.txt || exit 1 # Ausgabe wird ins Container-Dateisystem geschrieben ENTRYPOINT ["/bin/bash", "-c"]