initial commit
This commit is contained in:
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
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", "app:app" ]
|
Reference in New Issue
Block a user