| 1234567891011121314 |
- FROM python:3.9-slim
- 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 && \
- apt update && apt install -y opencv-python-headless --no-install-recommends && \
- apt-get clean && rm -rf /var/lib/apt/lists/*
- CMD ["gunicorn", "app:app", "-c", "gunicorn.conf"]
|