timezone support
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paolo Asperti 2022-09-21 08:38:29 +02:00
parent 036592473b
commit febac4d60f
Signed by: paspo
GPG Key ID: 06D46905D19D5182
2 changed files with 3 additions and 1 deletions

View File

@ -17,6 +17,7 @@ services:
- ./scripts:/scripts
- ./logs:/var/log
environment:
TZ: Europe/Rome
CRONTAB: >
*/5 7-22 * * * /scripts/test.py
*/10 7-22 * * * /scripts/test2.py

View File

@ -5,9 +5,10 @@ COPY entrypoint.sh /
RUN \
mkdir /scripts /crontabs && \
apk -U add python3 py3-pip py3-requests py3-dateutil py3-beautifulsoup4 logrotate && \
apk -U add python3 py3-pip py3-requests py3-dateutil py3-beautifulsoup4 logrotate tzdata && \
pip3 install fdb mysql-connector-python==8.0.29 telepot caldav
ENV CRONTAB=""
ENV TZ="Europe/Rome"
ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]