Juri Janner 80b3ff2d4d
Some checks failed
continuous-integration/drone/push Build is failing
revert 6a1733afa82cad66eb27e545415d29684b52e8a2
revert Dockerfile aktualisiert
2026-04-11 11:23:23 +00:00

22 lines
471 B
Docker

# Base-Image
FROM alpine:3.21
# Pakete installieren
RUN apt-get update
RUN apt-get install -y build-essential gcc 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"]