Improved dockerized backend
This commit is contained in:
parent
cfe1c32d0c
commit
beea4ef609
7 changed files with 89 additions and 152 deletions
10
Dockerfile
Normal file
10
Dockerfile
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
FROM python:3.10-slim-bookworm
|
||||
|
||||
RUN apt-get update && apt-get upgrade -y
|
||||
|
||||
COPY . .
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
WORKDIR /src
|
||||
EXPOSE 8000
|
||||
CMD ["fastapi", "run", "main.py"]
|
||||
Loading…
Reference in a new issue