Skip to content

Commit

Permalink
Merge pull request #2 from sengiv/patch-1
Browse files Browse the repository at this point in the history
Update & fix Dockerfile
  • Loading branch information
simonjj committed Jan 24, 2024
2 parents 10847b1 + a5f1bcf commit 9e2eaf0
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@

FROM python:3.9
FROM python:3.11

WORKDIR /code

COPY ./requirements.txt /code/requirements.txt
COPY requirements.txt .

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

COPY ./app /code/app
COPY . .

CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "3500"]
EXPOSE 3500

ENTRYPOINT ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "3500"]

0 comments on commit 9e2eaf0

Please sign in to comment.