kuebrichjo82295 b449823463
Some checks failed
continuous-integration/drone/push Build is failing
Changed Ubuntu -> Alpine
2026-04-11 13:56:24 +02:00

23 lines
474 B
Docker

# Base-Image
FROM alpine:latest
# 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"]