Files
more_dots/deploy/dev/Dockerfile
T

22 lines
488 B
Docker
Raw Normal View History

2026-03-03 16:27:48 +08:00
FROM python:3.12-slim-bookworm
2026-03-02 15:35:02 +08:00
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"]