aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-04-10 21:54:55 +0100
committerGravatar Joe Banks <[email protected]>2024-04-10 21:54:55 +0100
commit12641ee6112bae671f63538f27461562c830cca5 (patch)
treeee48f993a66e11662e75a6f02920b2c90dc26e96
parentRun `ruff format` to fix format changes (diff)
Change Poetry to install `--no-root` in Docker
Don't install the root package in the Dockerfile at the dependencies stage. We do this because we only copy over the pyproject.toml and the poetry.lock file meaning that we cannot depend on the package directory (`arthur`) being present at that point.
-rw-r--r--Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 2852447..cbbccc0 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,7 +3,7 @@ FROM --platform=linux/amd64 ghcr.io/owl-corp/python-poetry-base:3.12-slim
# Install project dependencies
WORKDIR /app
COPY pyproject.toml poetry.lock ./
-RUN poetry install --without dev
+RUN poetry install --without dev --no-root
# Set Git SHA environment variable for Sentry
ARG git_sha="development"