docker部署

This commit is contained in:
2026-04-18 17:41:47 +08:00
parent 2a67f56512
commit 5c5d44f7a0
3 changed files with 336 additions and 59 deletions

12
nas-uploader/Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 5001
CMD ["python3", "app.py"]