forked from freudenreichan/EinfuehrungInDocker_Pipeline2
+2
-2
@@ -20,7 +20,7 @@ RUN mkdir /output
|
|||||||
VOLUME /output
|
VOLUME /output
|
||||||
|
|
||||||
# User erstellen
|
# User erstellen
|
||||||
RUN adduser -D appuser
|
RUN adduser -D appuser && chown /output appuser
|
||||||
USER appuser
|
USER appuser
|
||||||
|
|
||||||
#health
|
#health
|
||||||
@@ -28,5 +28,5 @@ HEALTHCHECK --interval=5s --timeout=3s --retries=3 \
|
|||||||
CMD pgrep deployment || exit 1
|
CMD pgrep deployment || exit 1
|
||||||
|
|
||||||
# Ausgabe wird ins Container-Dateisystem geschrieben
|
# 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"]
|
CMD ["./deployment 10 > /output/output.txt && tail -f /output/output.txt"]
|
||||||
Reference in New Issue
Block a user