17 lines
354 B
Docker
17 lines
354 B
Docker
FROM python:3
|
|
|
|
ENV PYTHONUNBUFFERED=value
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY requirements.txt ./
|
|
|
|
RUN pip install --no-cache-dir --extra-index-url https://download.pytorch.org/whl/cpu -r requirements.txt
|
|
|
|
RUN apt update && apt install -y ffmpeg libsm6 libxext6
|
|
|
|
COPY src .
|
|
COPY best.pt /best.pt
|
|
|
|
CMD [ "gunicorn", "-b 0.0.0.0:80", "--workers", "1", "app:app" ]
|