poprawki do kontenere docker
poprawiona sciezka do pythona dodane TZ uzycie nowszego obrazu python
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
FROM python:3.9-slim-buster
|
FROM python:3.9-slim-bookworm
|
||||||
|
|
||||||
# Install cron
|
# Install cron
|
||||||
RUN apt-get update && apt-get -y install cron
|
RUN apt-get update && apt-get -y install cron
|
||||||
|
|||||||
2
crontab
2
crontab
@@ -1 +1 @@
|
|||||||
0 8,13,18 * * * python /app/main.py >> /var/log/cron.log 2>&1
|
0 9,13,16 * * * cd /app && /usr/local/bin/python main.py >> /var/log/cron.log 2>&1
|
||||||
|
|||||||
@@ -5,3 +5,6 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./credentials.json:/app/credentials.json:ro
|
- ./credentials.json:/app/credentials.json:ro
|
||||||
|
environment:
|
||||||
|
- TZ=Europe/Warsaw
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user