Mehr oder weniger fertig
Some checks failed
continuous-integration/drone/push Build is failing

hab noch keine erlaubniss auf output, ansonsten fertig
This commit is contained in:
Fabian Guth 2026-04-25 13:52:43 +00:00
parent 14535e58b6
commit f195da7021

View File

@ -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"]