Alpine Linux v3.8.1 with Logrotate installed at /usr/sbin/logrotate. 9MB.
5.4K
A handy basic image comprising of;
For previous tags v1 and v2;
The Dockerfile used to create this image is available at the root of the file system. Here it is anyway:
FROM alpine:latest
MAINTAINER Steven Iveson <[email protected]>
LABEL maintainer "Steven Iveson <[email protected]>"
COPY Dockerfile /
RUN apk add --no-cache --update --verbose logrotate grep bash && \
rm -rf /var/cache/apk/* /tmp/* /sbin/halt /sbin/poweroff /sbin/reboot
COPY logrotate.conf /etc/logrotate.conf
COPY crond.sh /usr/bin/crond.sh
RUN (echo -e "* 0 * * * echo 'Running Logrotate...' && /usr/sbin/logrotate --force --verbose /etc/logrotate.conf\n") | crontab - && \
chmod +x /usr/bin/crond.sh && chmod 644 /etc/logrotate.conf
ENTRYPOINT ["/usr/bin/crond.sh"]
Content type
Image
Digest
Size
3.5 MB
Last updated
about 8 years ago
docker pull itsthenetwork/alpine-logrotate