Skip to content

Commit 635bed2

Browse files
committed
install poetry with installation script
1 parent 81257ad commit 635bed2

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@ WORKDIR /app/frontend
44

55
COPY . .
66

7-
RUN pip install --upgrade pip && \
8-
pip install --user pipx
7+
# Install curl
8+
RUN apt-get update && apt-get install -y --no-install-recommends curl \
9+
&& rm -rf /var/lib/apt/lists/*
910

11+
# Install Poetry and add it to PATH
12+
RUN curl -sSL https://install.python-poetry.org | python3 - --version 2.1.3
1013
ENV PATH="/root/.local/bin:$PATH"
1114

12-
RUN pipx install poetry==2.1.3 && \
13-
poetry install --only main
15+
# Install project
16+
RUN poetry install --only main
1417

1518
EXPOSE 8501
1619

0 commit comments

Comments
 (0)