Lorenz Weller bfaad83fdc
Some checks failed
continuous-integration/drone/push Build is failing
Dockerfile aktualisiert
2026-04-11 11:55:34 +00:00

27 lines
432 B
Docker

FROM alpine:latest
RUN apk add --no-cache gcc
WORKDIR /app
RUN adduser -D appuser && mkdir /output && chown appuser:appuser /app /output
COPY . .
RUN chown appuser:appuser deployment.c
USER appuser
RUN gcc -o deployment deployment.c
VOLUME /output
HEALTHCHECK --interval=30s --timeout=5s CMD test -f /output/output.txt || exit 1
CMD ["sh", "-c", "./deployment 10 > /output/output.txt && tail -f /output/output.txt"]