mirror of
https://github.com/Radiquum/AniX.git
synced 2025-05-07 21:39:41 +05:00
feat(docker): add docker compose file for development environment
This commit is contained in:
parent
47c6ea5d08
commit
023e0c3a0b
5 changed files with 85 additions and 2 deletions
18
docker/backend.dev.Dockerfile
Normal file
18
docker/backend.dev.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", "--reload", "--host", "0.0.0.0"]
|
Loading…
Add table
Add a link
Reference in a new issue