This commit is contained in:
2026-03-02 15:35:02 +08:00
parent a158cbbe9c
commit 460c2e87b8
26 changed files with 2040 additions and 265 deletions
+22
View File
@@ -0,0 +1,22 @@
FROM python:3.12-bookworm
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 \
PIP_PROGRESS_BAR=off \
PIP_NO_COLOR=1 \
PIP_QUIET=1
WORKDIR /app
RUN pip install --no-input --no-cache-dir --upgrade pip setuptools wheel
COPY requirements.txt /app/requirements.txt
RUN pip install --no-input --no-cache-dir \
-r /app/requirements.txt \
-i https://pypi.tuna.tsinghua.edu.cn/simple/
COPY . /app
EXPOSE 8000
CMD ["python", "server.py"]