Files
2026-11-04 14:09:24 +08:00

14 lines
305 B
Docker
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# 不緩衝 print,docker logs 才會即時看到
ENV PYTHONUNBUFFERED=1
# 資料庫放在獨立的 volume
ENV DB_PATH=/data/lunarhelper.db
VOLUME ["/data"]
CMD ["python", "main.py"]