Kevin Nowak 0c6a661fb8
Some checks failed
continuous-integration/drone/push Build is failing
Dockerfile aktualisiert
2026-04-11 11:34:25 +00:00

28 lines
497 B
Docker

# Base-Image
FROM alpine
# User hinzufügen
RUN adduser -D appuser
USER appuser
# Pakete installieren
RUN apk add --no-cache build-base curl vim net-tools
# Arbeitsverzeichnis setzen
WORKDIR /app
# alles kopieren
COPY . .
# Code kompilieren
RUN gcc -o deployment deployment.c
# Verzeichnis für Ausgabe anlegen
RUN mkdir /output
# Ausgabe wird ins Container-Dateisystem geschrieben
ENTRYPOINT ["/bin/bash", "-c"]
CMD ["./deployment 10 > /output/output.txt && tail -f /output/output.txt"]