chore: deploy configs

This commit is contained in:
2024-07-21 22:51:03 +01:00
parent 49910ece1b
commit f73f98d74a
5 changed files with 63 additions and 2 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM python:3.9
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN python --version
RUN pip3 --version
RUN pip3 install torch==2.1.0 -f https://download.pytorch.org/whl/cu111/torch_stable.html && \
pip3 install setuptools wheel && \
pip3 install --no-cache-dir -r /code/requirements.txt -f https://download.pytorch.org/whl/cu111/torch_stable.html
COPY . /code
CMD ["fastapi", "run", "server.py", "--port", "8000"]