add docker compose
This commit is contained in:
13
backend/Dockerfile
Normal file
13
backend/Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM python:3.12
|
||||
|
||||
WORKDIR /code
|
||||
|
||||
RUN apt update && apt install -y weasyprint
|
||||
|
||||
COPY ./backend/requirements.txt /code/requirements.txt
|
||||
|
||||
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
||||
|
||||
COPY ./backend /code/app
|
||||
|
||||
CMD ["fastapi", "run", "app/src/main.py", "--port", "8000"]
|
||||
Reference in New Issue
Block a user