Oliver a265392fdb
All checks were successful
continuous-integration/drone/push Build is passing
Revert back Dockerfile
2026-05-10 14:41:12 +00:00

23 lines
481 B
Docker

# ---------- Build Stage ----------
FROM alpine:latest AS build
# Pakete installieren
RUN apk add --no-cache build-base 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/sh", "-c"]
CMD ["./deployment 10 > /output/output.txt && tail -f /output/output.txt"]