We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87aa386 commit 320628bCopy full SHA for 320628b
06-demo-application/load-generator-python/Dockerfile
@@ -1,10 +1,13 @@
1
FROM python:3.12-slim AS generate-requirements
2
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
3
RUN curl -sSL https://install.python-poetry.org | python3 -
4
+ENV PATH="/root/.local/bin:$PATH"
5
+# Export is provided by a plugin in newer versions of poetry
6
+RUN poetry self add "poetry-plugin-export[requirements]"
7
COPY pyproject.toml poetry.lock ./
-RUN /root/.local/bin/poetry export --output requirements.txt
8
+RUN poetry export --output requirements.txt
9
-###
10
+# ###
11
12
FROM python:3.12-slim AS production
13
COPY --from=generate-requirements /requirements.txt .
0 commit comments