Dockerfile aktualisiert
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Kevin Nowak 2026-04-11 11:34:25 +00:00
parent d428dbab16
commit 0c6a661fb8

View File

@ -1,8 +1,12 @@
# Base-Image # Base-Image
FROM alpine FROM alpine
# User hinzufügen
RUN adduser -D appuser
USER appuser
# Pakete installieren # Pakete installieren
#RUN apk update
RUN apk add --no-cache build-base curl vim net-tools RUN apk add --no-cache build-base curl vim net-tools
# Arbeitsverzeichnis setzen # Arbeitsverzeichnis setzen
@ -17,6 +21,8 @@ RUN gcc -o deployment deployment.c
# Verzeichnis für Ausgabe anlegen # Verzeichnis für Ausgabe anlegen
RUN mkdir /output 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"]