| 123456789101112 |
- FROM docker.m.daocloud.io/library/python:3.11-slim AS base
- WORKDIR /app
- COPY requirements.txt ./
- RUN pip install --no-cache-dir --upgrade pip setuptools wheel -i https://mirrors.aliyun.com/pypi/simple/ \
- && pip install --no-cache-dir -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
- COPY app ./app
- EXPOSE 8000
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|