File size: 345 Bytes
b3d2b24 e0d5981 b3d2b24 176c85d 3ae310a 6d393ca |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
FROM python:3.10-slim-buster
ENV MPLCONFIGDIR /tmp/matplotlib
RUN apt-get update && \
apt-get install -y libgl1-mesa-glx libglib2.0-0
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . .
CMD ["gunicorn", "-b", "0.0.0.0:7860","--timeout","120","app"]
|