Files
2026-11-02 21:59:13 +08:00

12 lines
224 B
Docker

FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# 資料庫放在獨立的 volume
ENV DB_PATH=/data/game.db
VOLUME ["/data"]
CMD ["python", "main.py"]