Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docker/dev/worker_py3_7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ WORKDIR /code
COPY requirements/ /code/requirements/

# PyJWT>=2.10 requires Python 3.9+; pin a 3.7-compatible release for worker builds.
RUN sed -i 's/^PyJWT==.*/PyJWT==2.8.0/' /code/requirements/common.txt
# dnspython>=2.4 requires Python 3.8+; pin a 3.7-compatible release for worker builds.
RUN sed -i 's/^PyJWT==.*/PyJWT==2.8.0/' /code/requirements/common.txt && \
sed -i 's/^dnspython==.*/dnspython==2.3.0/' /code/requirements/common.txt

# Install Python dependencies with BuildKit cache mount
RUN --mount=type=cache,target=/root/.cache/pip \
Expand Down
4 changes: 3 additions & 1 deletion docker/prod/worker_py3_7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ WORKDIR /code
COPY requirements/ /code/requirements/

# PyJWT>=2.10 requires Python 3.9+; pin a 3.7-compatible release for worker builds.
RUN sed -i 's/^PyJWT==.*/PyJWT==2.8.0/' /code/requirements/common.txt
# dnspython>=2.4 requires Python 3.8+; pin a 3.7-compatible release for worker builds.
RUN sed -i 's/^PyJWT==.*/PyJWT==2.8.0/' /code/requirements/common.txt && \
sed -i 's/^dnspython==.*/dnspython==2.3.0/' /code/requirements/common.txt

# Install Python dependencies with BuildKit cache mount
RUN --mount=type=cache,target=/root/.cache/pip \
Expand Down
2 changes: 1 addition & 1 deletion docker/prod/worker_py3_9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ COPY requirements/ /code/requirements/
# Note: BuildKit cache mount persists outside container, but we clean internal cache for final image size
# Install prerequisite packages first (needed for compiling native extensions)
RUN --mount=type=cache,target=/root/.cache/pip \
pip install --no-cache-dir --no-compile -U cffi service_identity cython==0.29.36 numpy==1.18.1 && \
pip install --no-cache-dir --no-compile -U cffi service_identity cython==0.29.36 && \
pip install --no-cache-dir --no-compile -r requirements/prod.txt && \
pip install --no-cache-dir --no-compile -r requirements/worker_py3_9.txt

Expand Down
Loading