better entrypoint, crontab in env
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
2022-09-20 12:53:35 +02:00
parent ff52dbda78
commit 036592473b
3 changed files with 34 additions and 1 deletions

View File

@@ -1,10 +1,13 @@
FROM alpine:3.16
COPY logrotate-cron /etc/logrotate.d
COPY entrypoint.sh /
RUN \
mkdir /scripts /crontabs && \
apk -U add python3 py3-pip py3-requests py3-dateutil py3-beautifulsoup4 logrotate && \
pip3 install fdb mysql-connector-python==8.0.29 telepot caldav
ENTRYPOINT ["/usr/sbin/crond", "-f", "-d8", "-L", "/var/log/cron.log", "-c", "/crontabs"]
ENV CRONTAB=""
ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]