Upload to gitea
This commit is contained in:
commit
d3d25c68f9
12 files changed
+500
No files matched your search
+13
@@ -0,0 +1,13 @@
|
||||
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"]
|
||||
Reference in new issue
Block a user