Add fastapi to the list of compose projects
* Fastapi base Dockerfile * requirements.txt for fastapi project * Add documentation on how to run the application * Add entrypoint for fastapi application * Add docker-compose.yml for fastapi Signed-off-by: vjanz <valon.januzaj98@gmail.com>
This commit is contained in:
parent
263ba37b97
commit
b7685ad15f
6 changed files with 86 additions and 0 deletions
11
fastapi/Dockerfile
Normal file
11
fastapi/Dockerfile
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.9-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt update
|
||||
|
||||
COPY requirements.txt ./
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY ./app ./app
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue