Aaron Voelker 4dbcf50614
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is failing
Dockerfile aktualisiert
2026-04-11 12:02:33 +00:00

21 lines
437 B
Docker

# Base-Image
FROM alpine AS build-env
# Pakete installieren
RUN akp add --no-cache biuld-base curl
# 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"]