poprawki do kontenere docker

poprawiona sciezka do pythona
dodane TZ
uzycie nowszego obrazu python
This commit is contained in:
2025-11-03 07:58:16 +01:00
parent 09e5435e95
commit 5df9d62614
3 changed files with 5 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
FROM python:3.9-slim-buster
FROM python:3.9-slim-bookworm
# Install cron
RUN apt-get update && apt-get -y install cron

View File

@@ -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

View File

@@ -5,3 +5,6 @@ services:
restart: unless-stopped
volumes:
- ./credentials.json:/app/credentials.json:ro
environment:
- TZ=Europe/Warsaw