added logrotate and crond entrypoint
All checks were successful
continuous-integration/drone/tag Build is passing
All checks were successful
continuous-integration/drone/tag Build is passing
This commit is contained in:
parent
a5b5857225
commit
6468a01914
@ -1,5 +1,9 @@
|
|||||||
FROM alpine:3.16
|
FROM alpine:3.16
|
||||||
|
|
||||||
|
COPY logrotate-cron /etc/logrotate.d
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
apk -U add python3 py3-pip py3-requests py3-dateutil py3-beautifulsoup4 && \
|
apk -U add python3 py3-pip py3-requests py3-dateutil py3-beautifulsoup4 logrotate && \
|
||||||
pip3 install fdb mysql-connector-python==8.0.29 telepot caldav
|
pip3 install fdb mysql-connector-python==8.0.29 telepot caldav
|
||||||
|
|
||||||
|
ENTRYPOINT ["/usr/sbin/crond", "-f", "-d8", "-L", "/var/log/cron.log"]
|
||||||
|
8
docker/logrotate-cron
Normal file
8
docker/logrotate-cron
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
/var/log/cron.log {
|
||||||
|
rotate 4
|
||||||
|
compress
|
||||||
|
delaycompress
|
||||||
|
missingok
|
||||||
|
notifempty
|
||||||
|
sharedscripts
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user