Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix devcontainer setup by install poetry via pipx (#17370)

Krzysztof Żuraw8006bd8b3a95
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
index d2cd799fed..97b38e421d 100644
--- a/.devcontainer/Dockerfile
+++ b/.devcontainer/Dockerfile
@@ -14,10 +14,13 @@ RUN apt-get update \
libwebp7 \
libpq5 \
shared-mime-info \
- mime-support
+ mime-support \
+ pipx
+
+RUN pipx ensurepath
WORKDIR /app
-RUN pip install poetry==2.0.1
+RUN pipx install poetry==2.0.1
RUN poetry config virtualenvs.create false
COPY poetry.lock pyproject.toml /app/
-RUN poetry install
+RUN poetry sync