initial commit

This commit is contained in:
2023-12-27 23:26:15 +00:00
commit 29a75fa442
9 changed files with 204 additions and 0 deletions

16
Dockerfile Normal file
View 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" ]