diff --git a/README.md b/README.md index 5cc66ba..24c5d13 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/docker/Dockerfile b/docker/Dockerfile index 92829ca..ce23d51 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -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"]