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