- package src/sigcal_bot, distribution and CLI sigcal-bot - environment variables SIGCAL_BOT_* - database file, container names, user agents, logs and QR device name - docs and changelog updated
17 lines
393 B
Docker
17 lines
393 B
Docker
FROM python:3.12-slim
|
|
|
|
ENV PYTHONUNBUFFERED=1 \
|
|
PYTHONDONTWRITEBYTECODE=1 \
|
|
PIP_NO_CACHE_DIR=1
|
|
|
|
WORKDIR /app
|
|
|
|
COPY pyproject.toml ./
|
|
COPY src ./src
|
|
RUN pip install .
|
|
|
|
# The compose file runs the bot as uid/gid 1000; these must be writable.
|
|
RUN mkdir -p /app/data /app/cache && chown -R 1000:1000 /app/data /app/cache
|
|
|
|
CMD ["python", "-m", "sigcal_bot", "--config", "/app/config.toml"]
|