From 73e3ebdc4e5eba398d2f7eabb62e87e5b83e0161 Mon Sep 17 00:00:00 2001 From: Edward Koenig Date: Sat, 11 Apr 2026 11:18:08 +0000 Subject: [PATCH] Dockerfile aktualisiert --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index a5cdf64..94369f1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,8 @@ # Base-Image -FROM ubuntu:latest +FROM alpine:3.21 # Pakete installieren -RUN apt-get update -RUN apt-get install -y build-essential gcc curl vim net-tools +RUN apk add --no-cache build-base gcc # Arbeitsverzeichnis setzen WORKDIR /app @@ -18,5 +17,5 @@ RUN gcc -o deployment deployment.c RUN mkdir /output # Ausgabe wird ins Container-Dateisystem geschrieben -ENTRYPOINT ["/bin/bash", "-c"] +ENTRYPOINT ["/bin/sh", "-c"] CMD ["./deployment 10 > /output/output.txt && tail -f /output/output.txt"] \ No newline at end of file