Skip to content

Commit bf1d68d

Browse files
committed
[DOP-25348] Compile .venv to pyc in parallel
1 parent 87ca86c commit bf1d68d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docker/Dockerfile.scheduler

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ RUN --mount=type=cache,target=/root/.cache/pypoetry \
4343
--extras "scheduler" \
4444
--with test \
4545
--without docs,dev \
46-
&& python -m compileall .venv
46+
&& python -m compileall -j 4 .venv
4747

4848
RUN sed -i 's/python -m/coverage run -m/g' /app/entrypoint.sh

docker/Dockerfile.server

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@ RUN --mount=type=cache,target=/root/.cache/pypoetry \
6161
--extras "server" \
6262
--with test \
6363
--without docs,dev \
64-
&& python -m compileall .venv
64+
&& python -m compileall -j 4 .venv
6565

6666
RUN sed -i 's/python -m/coverage run -m/g' /app/entrypoint.sh

docker/Dockerfile.worker

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ RUN --mount=type=cache,target=/root/.cache/pypoetry \
3636
--no-root \
3737
--extras "worker" \
3838
--without test,docs,dev \
39-
&& python -m compileall .venv
39+
&& python -m compileall -j 4 .venv
4040

4141

4242
FROM base AS prod

0 commit comments

Comments
 (0)