Skip to content

Commit 9a4b34c

Browse files
committed
rewrite dockerfile with poetry
1 parent be959a7 commit 9a4b34c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
FROM python:3.8
22
WORKDIR /app
33

4-
ADD requirements.txt /app/requirements.txt
4+
ADD pyproject.toml /app/pyproject.toml
55

6-
RUN pip install --upgrade -r requirements.txt
7-
RUN pip install python-multipart
6+
RUN pip install pipx
7+
RUN pix install poetry
8+
RUN poetry install
89

910
COPY ./ /app
1011

11-
EXPOSE 8081
12+
EXPOSE 8000
1213

13-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8080"]
14+
CMD ["poetry", "run"

0 commit comments

Comments
 (0)