Skip to content

Commit

Permalink
Use the right timezone for cron
Browse files Browse the repository at this point in the history
  • Loading branch information
enrico-ghidoni committed Jun 22, 2024
1 parent 85ed44d commit 44a7bc4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ RUN apk add --no-cache python3 py3-pip
RUN pip install --break-system-packages -r requirements.txt
RUN crontab crontab.txt

# Install tzdata to switch timezone on deployment
RUN apk add --no-cache tzdata

CMD ["crond", "-f"]
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ services:
image: cntoarma/owlbot:dev
secrets:
- discord_token
environment:
- "TZ=Europe/Stockholm"

secrets:
discord_token:
Expand Down

0 comments on commit 44a7bc4

Please sign in to comment.