forked from freudenreichan/EinfuehrungInDocker_Pipeline2
This commit is contained in:
parent
8c7f2f174d
commit
3855a269bf
@ -11,16 +11,13 @@ WORKDIR /app
|
|||||||
COPY --chown=appuser:appgroup . .
|
COPY --chown=appuser:appgroup . .
|
||||||
|
|
||||||
USER appuser
|
USER appuser
|
||||||
RUN gcc -o deployment deployment.c -O2 -static # -static macht das Binary robuster
|
RUN gcc -o deployment deployment.c -O2 -static
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
RUN mkdir -p /output && \
|
RUN mkdir -p /output && \
|
||||||
chown -R appuser:appgroup /output && \
|
chown -R appuser:appgroup /output && \
|
||||||
chmod 755 /output
|
chmod -R 755 /output
|
||||||
|
|
||||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
|
||||||
CMD pgrep -x deployment > /dev/null || exit 1
|
|
||||||
|
|
||||||
VOLUME ["/output"]
|
VOLUME ["/output"]
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user