Sh statt Bash
This commit is contained in:
parent
8d6faa5657
commit
63d7683d18
@ -52,8 +52,8 @@ VOLUME ["/output"]
|
||||
# 6. Startbefehl
|
||||
# Wir starten das Programm (Intervall: 10 Sekunden) und hängen die Ausgabe (>>) an die Datei im Volume an.
|
||||
# (Dein C-Code nutzt netterweise schon fflush(stdout), was perfekt für diese Umleitung ist!)
|
||||
# CMD ["sh", "-c", "/app/deployment 10 >> /output/ausgabe.log"]
|
||||
# CMD ["sh", "-c", "./deployment 10 >> /output/ausgabe.log && tail -f /output/ausgabe.log"]
|
||||
|
||||
# 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"]
|
||||
Loading…
x
Reference in New Issue
Block a user