mirror of
https://github.com/TheLovinator1/discord-reminder-bot.git
synced 2025-07-13 09:03:29 +02:00
Refactor Dockerfile and docker-compose.yml to set environment variables directly and remove unused variables
This commit is contained in:
@ -18,6 +18,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \
|
||||
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
|
||||
uv sync --no-install-project
|
||||
|
||||
ARG DATA_DIR=${DATA_DIR:-/home/botuser/data}
|
||||
ENV DATA_DIR=/home/botuser/data
|
||||
ENV SQLITE_LOCATION=/home/botuser/data/jobs.sqlite
|
||||
VOLUME ["/home/botuser/data/"]
|
||||
CMD ["uv", "run", "python", "-m", "discord_reminder_bot.main"]
|
||||
|
@ -7,9 +7,6 @@ services:
|
||||
environment:
|
||||
- BOT_TOKEN=${BOT_TOKEN}
|
||||
- TIMEZONE=${TIMEZONE}
|
||||
- LOG_LEVEL=${LOG_LEVEL}
|
||||
- SQLITE_LOCATION=/data/jobs.sqlite
|
||||
- DATA_DIR=/data
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- data_folder:/home/botuser/data/
|
||||
|
Reference in New Issue
Block a user