From 8cd4ff189e87eaeee46d4eccf2c9eacd9b31f360 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Sun, 16 Feb 2025 16:41:53 +0000 Subject: Build python byte code at isstall time --- Dockerfile | 4 ++-- 1 file 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" -- cgit v1.2.3