Skip to content

Commit 05e6684

Browse files
install latest poetry via official method (#398)
1 parent 5e3e4e7 commit 05e6684

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Dockerfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
FROM python:3.12-slim as builder
2-
RUN pip install poetry
2+
3+
RUN apt-get update && apt-get install -y curl
4+
5+
# Install Poetry (latest) using the official install script
6+
RUN curl -sSL https://install.python-poetry.org | python3 -
7+
ENV PATH="/root/.local/bin:$PATH"
8+
9+
RUN poetry self add poetry-plugin-export
10+
311
COPY pyproject.toml .
412
COPY poetry.lock .
513
RUN poetry export --format requirements.txt --output /root/requirements.txt

0 commit comments

Comments
 (0)