forked from freudenreichan/EinfuehrungInDocker_Pipeline2
This commit is contained in:
parent
1df8ccde30
commit
2a5bae772f
@ -1,5 +1,5 @@
|
||||
# Base-Image
|
||||
FROM alpine:latest
|
||||
FROM alpine:3.20
|
||||
|
||||
# Pakete installieren
|
||||
RUN apk add --no-cache build-base gcc curl vim net-tools
|
||||
@ -23,6 +23,10 @@ VOLUME /output
|
||||
RUN adduser -D appuser
|
||||
USER appuser
|
||||
|
||||
#health
|
||||
HEALTHCHECK --interval=5s --timeout=3s --retries=3 \
|
||||
CMD pgrep deployment || exit 1
|
||||
|
||||
# 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