Dockerfile 380 B

12345678910111213141516
  1. FROM python:3.12-slim
  2. WORKDIR /app
  3. COPY requirements.txt ./
  4. RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple && \
  5. pip config set global.trusted-host pypi.tuna.tsinghua.edu.cn
  6. RUN python -m pip install --upgrade pip \
  7. && python -m pip install --no-cache-dir -r requirements.txt
  8. COPY . .
  9. EXPOSE 5000
  10. CMD ["uwsgi", "--ini", "/app/uwsgi.ini"]