Files
EventHubBack/docker/logrotate/Dockerfile
T
2026-07-10 14:33:19 +03:00

9 lines
292 B
Docker

FROM alpine:latest
RUN for i in 1 2 3 4 5; do \
apk add --no-cache logrotate dcron tzdata && break; \
echo "apk retry $i/5..."; sleep 15; \
done
COPY logrotate.conf /etc/logrotate.conf
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]