9 lines
292 B
Docker
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"] |