changed non root user settings
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-04-18 21:52:02 +02:00
parent 0cab77fb37
commit 415e336e62
2 changed files with 46 additions and 17 deletions
+22
View File
@@ -0,0 +1,22 @@
# Base-Image
FROM ubuntu: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"]