Ajouter Dockerfile, requirements.txt, et mettre à jour les imports dans models.py et security.py
This commit is contained in:
parent
26020ecbc1
commit
c6579868d7
4 changed files with 41 additions and 6 deletions
11
Dockerfile
Normal file
11
Dockerfile
Normal file
|
@ -0,0 +1,11 @@
|
|||
FROM python:3.12-bookworm
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY ./requirements.txt /app/requirements.txt
|
||||
|
||||
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
||||
|
||||
COPY . /app
|
||||
|
||||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"]
|
Loading…
Add table
Add a link
Reference in a new issue