docs(readme): add instructions to deploy via docker compose and via deta.space

This commit is contained in:
Kentai Radiquum 2024-05-15 00:02:29 +05:00
parent 59a61d3e7a
commit f2f83ad084
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
7 changed files with 239 additions and 5 deletions

18
docker/backend.Dockerfile Normal file
View file

@ -0,0 +1,18 @@
# The first instruction is what image we want to base our container on
# We Use an official Python runtime as a parent image
FROM python:3.9
# The enviroment variable ensures that the python output is set straight
# to the terminal with out buffering it first
ENV PYTHONUNBUFFERED 1
# Set the working directory to /app
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . .
# Install any needed packages specified in requirements.txt
RUN pip install -r requirements.txt
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--root-path", "/api"]