hab noch keine erlaubniss auf output, ansonsten fertig
This commit is contained in:
parent
14535e58b6
commit
f195da7021
12
Dockerfile
12
Dockerfile
@ -19,12 +19,22 @@ FROM alpine AS runtime
|
|||||||
|
|
||||||
RUN apk add --no-cache bash
|
RUN apk add --no-cache bash
|
||||||
|
|
||||||
|
#RUN adduser -u 1000 -g 1000 -D -s /bin/bash fabian
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY --from=build_stage /app/deployment .
|
COPY --from=build_stage /app/deployment .
|
||||||
|
|
||||||
# Verzeichnis für Ausgabe anlegen
|
# Verzeichnis für Ausgabe anlegen
|
||||||
RUN mkdir /output
|
#USER root
|
||||||
|
RUN mkdir /output && chown 1000:1000 /output
|
||||||
|
#USER fabian
|
||||||
|
USER 1000:1000
|
||||||
|
|
||||||
|
VOLUME ["/output"]
|
||||||
|
|
||||||
|
#Healthcheck
|
||||||
|
HEALTHCHECK --interval=30s CMD test -f /output/output.txt || exit 1
|
||||||
|
|
||||||
# Ausgabe wird ins Container-Dateisystem geschrieben
|
# Ausgabe wird ins Container-Dateisystem geschrieben
|
||||||
ENTRYPOINT ["/bin/bash", "-c"]
|
ENTRYPOINT ["/bin/bash", "-c"]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user