Skip to content

Commit a5f1bcf

Browse files
authored
Update & fix Dockerfile
tested working in local & deployed in Azure
1 parent 10847b1 commit a5f1bcf

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11

2-
FROM python:3.9
2+
FROM python:3.11
33

44
WORKDIR /code
55

6-
COPY ./requirements.txt /code/requirements.txt
6+
COPY requirements.txt .
77

8-
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8+
RUN pip3 install -r requirements.txt
99

10-
COPY ./app /code/app
10+
COPY . .
1111

12-
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "3500"]
12+
EXPOSE 3500
13+
14+
ENTRYPOINT ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "3500"]

0 commit comments

Comments
 (0)