Compare commits

..

No commits in common. "ubuntuOrigAberMulti" and "main" have entirely different histories.

View File

@ -1,5 +1,5 @@
# Base-Image
FROM ubuntu:latest AS build_stage
FROM ubuntu:latest
# Pakete installieren
RUN apt-get update
@ -14,18 +14,9 @@ COPY . .
# Code kompilieren
RUN gcc -o deployment deployment.c
FROM alpine AS runtime
RUN apk add --no-cache bash
WORKDIR /app
COPY --from=build_stage /app/deployment .
# 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"]
CMD ["./deployment 10 > /output/output.txt && tail -f /output/output.txt"]