mirror of
https://github.com/Radiquum/AniX.git
synced 2025-05-05 12:29:41 +05:00
docs(readme): add instructions to deploy via docker compose and via deta.space
This commit is contained in:
parent
59a61d3e7a
commit
f2f83ad084
7 changed files with 239 additions and 5 deletions
18
docker/backend.Dockerfile
Normal file
18
docker/backend.Dockerfile
Normal 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"]
|
Loading…
Add table
Add a link
Reference in a new issue