Dockerfile 276 B

123456789101112
  1. FROM python:3.9.2-alpine
  2. WORKDIR /srv
  3. COPY requires.txt .
  4. ARG tuna=https://pypi.tuna.tsinghua.edu.cn/simple
  5. RUN pip install --no-cache-dir --upgrade pip -i $tuna \
  6. && pip install --no-cache-dir -r requires.txt -i $tuna
  7. CMD ["gunicorn", "app:app", "-c", "gunicorn.conf"]