Dockerfile aktualisiert
This commit is contained in:
parent
d428dbab16
commit
0c6a661fb8
@ -1,8 +1,12 @@
|
||||
# Base-Image
|
||||
FROM alpine
|
||||
|
||||
|
||||
# User hinzufügen
|
||||
RUN adduser -D appuser
|
||||
USER appuser
|
||||
|
||||
# Pakete installieren
|
||||
#RUN apk update
|
||||
RUN apk add --no-cache build-base curl vim net-tools
|
||||
|
||||
# Arbeitsverzeichnis setzen
|
||||
@ -17,6 +21,8 @@ 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"]
|
||||
Loading…
x
Reference in New Issue
Block a user