Skip to content

Commit 8cd4ff1

Browse files
committed
Build python byte code at isstall time
1 parent 2e62f80 commit 8cd4ff1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ RUN apt-get update \
1313

1414
# Install project dependencies with build tools available
1515
COPY pyproject.toml poetry.lock ./
16-
RUN poetry install --no-root --without dev --with ldap
16+
RUN poetry install --compile --no-root --without dev --with ldap
1717

1818
# -------------------------------------------------------------------------------
1919

@@ -29,7 +29,7 @@ RUN apt-get update \
2929
WORKDIR /app
3030
COPY pyproject.toml poetry.lock ./
3131
COPY --from=wheel-builder /opt/poetry/cache /opt/poetry/cache
32-
RUN poetry install --no-root --without dev --with ldap
32+
RUN poetry install --compile --no-root --without dev --with ldap
3333

3434
# Set Git SHA environment variable for Sentry
3535
ARG git_sha="development"

0 commit comments

Comments
 (0)