aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2025-02-16 16:41:53 +0000
committerGravatar Chris Lovering <[email protected]>2025-02-16 16:41:53 +0000
commit8cd4ff189e87eaeee46d4eccf2c9eacd9b31f360 (patch)
tree4290a324c7c5abdf107f32c02024cafdca6147e3
parentBonsai now needs libldap2-dev at runtime (diff)
Build python byte code at isstall time
-rw-r--r--Dockerfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index ad24496..3a3173e 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -13,7 +13,7 @@ RUN apt-get update \
# Install project dependencies with build tools available
COPY pyproject.toml poetry.lock ./
-RUN poetry install --no-root --without dev --with ldap
+RUN poetry install --compile --no-root --without dev --with ldap
# -------------------------------------------------------------------------------
@@ -29,7 +29,7 @@ RUN apt-get update \
WORKDIR /app
COPY pyproject.toml poetry.lock ./
COPY --from=wheel-builder /opt/poetry/cache /opt/poetry/cache
-RUN poetry install --no-root --without dev --with ldap
+RUN poetry install --compile --no-root --without dev --with ldap
# Set Git SHA environment variable for Sentry
ARG git_sha="development"