Skip to content

Commit 81257ad

Browse files
committed
update Dockerfile to use poetry
1 parent bd4a884 commit 81257ad

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

Dockerfile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@ FROM python:3.13-slim
33
WORKDIR /app/frontend
44

55
COPY . .
6-
RUN pip install --upgrade pip && pip install --no-cache-dir .
6+
7+
RUN pip install --upgrade pip && \
8+
pip install --user pipx
9+
10+
ENV PATH="/root/.local/bin:$PATH"
11+
12+
RUN pipx install poetry==2.1.3 && \
13+
poetry install --only main
714

815
EXPOSE 8501
916

10-
CMD ["bash", "-c", "streamlit run frontend/main.py"]
17+
CMD ["bash", "-c", "poetry run streamlit run frontend/main.py"]

0 commit comments

Comments
 (0)