aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2025-02-16 16:29:09 +0000
committerGravatar Chris Lovering <[email protected]>2025-02-16 16:34:30 +0000
commit7681feab2dbfbb53c90bc65132df0afe4e4b6e29 (patch)
tree2bc753bcabb09f79b144caef84d06c4a249b01ab
parentBump python-freeipa to 1.0.9 (diff)
Update poetry install command to ensure ldap deps are isntalled
-rw-r--r--Dockerfile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 238de59..53bb9f5 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -13,19 +13,19 @@ RUN apt-get update \
# Install project dependencies with build tools available
COPY pyproject.toml poetry.lock ./
-RUN poetry install --without dev --with ldap --no-root
+RUN poetry install --no-root --without dev --with ldap
# -------------------------------------------------------------------------------
FROM --platform=linux/amd64 ghcr.io/owl-corp/python-poetry-base:$python_version
-COPY --from=wheel-builder /opt/poetry/cache /opt/poetry/cache
RUN apt-get update && apt-get install --no-install-recommends -y libmagickwand-dev && rm -rf /var/lib/apt/lists/*
# Install dependencies from build cache
WORKDIR /app
COPY pyproject.toml poetry.lock ./
-RUN poetry install --without dev --with ldap --no-root
+COPY --from=wheel-builder /opt/poetry/cache /opt/poetry/cache
+RUN poetry install --no-root --without dev --with ldap
# Set Git SHA environment variable for Sentry
ARG git_sha="development"