file creation before appuser
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Eric Sharifi 2026-04-11 11:36:07 +00:00
parent 782353499e
commit bc2a4f8b53

View File

@ -14,13 +14,13 @@ COPY . .
# Code kompilieren # Code kompilieren
RUN gcc -o deployment deployment.c RUN gcc -o deployment deployment.c
# Verzeichnis für Ausgabe anlegen
RUN mkdir /output
# User erstellen # User erstellen
RUN adduser -D appuser RUN adduser -D appuser
USER appuser USER appuser
# Verzeichnis für Ausgabe anlegen
RUN mkdir /output
# Ausgabe wird ins Container-Dateisystem geschrieben # Ausgabe wird ins Container-Dateisystem geschrieben
ENTRYPOINT ["/bin/bash", "-c"] ENTRYPOINT ["/bin/bash", "-c"]
CMD ["./deployment 10 > /output/output.txt && tail -f /output/output.txt"] CMD ["./deployment 10 > /output/output.txt && tail -f /output/output.txt"]