Content-Length: 298544 | pFad | http://github.com/celery/celery/pull/9733

6F Dockerfile Build Optimizations by Nusnus · Pull Request #9733 · celery/celery · GitHub
Skip to content

Dockerfile Build Optimizations #9733

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Dockerfile Build Optimizations #9733

wants to merge 2 commits into from

Conversation

Nusnus
Copy link
Member

@Nusnus Nusnus commented Jun 2, 2025

No description provided.

@auvipy
Copy link
Member

auvipy commented Jun 2, 2025

ping me when it's ready

@auvipy auvipy requested review from auvipy and Copilot and removed request for auvipy June 4, 2025 08:49
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request optimizes the Docker build process by consolidating RUN commands, leveraging BuildKit caching, and updating environment variable settings.

  • Changed PIP_NO_CACHE_DIR value and consolidated its usage.
  • Combined multiple pyenv install and pip installation commands for improved layer caching.
  • Updated the Makefile to enforce BuildKit during the Docker build.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
docker/Dockerfile Updated environment variable and consolidated RUN commands with BuildKit caching, along with a repositioned COPY to potentially impact caching behavior.
Makefile Modified the build command to force BuildKit usage.
Comments suppressed due to low confidence (2)

Makefile:171

  • Ensure that all developer and CI environments support BuildKit, as required by the updated build command for proper functioning of cache mounts.
@DOCKER_BUILDKIT=1 docker compose -f docker/docker-compose.yml build

docker/Dockerfile:41

  • Verify that setting 'PIP_NO_CACHE_DIR' to 'false' correctly disables pip caching as intended, since the previous value was 'off'.
ENV PIP_NO_CACHE_DIR=false

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/celery/celery/pull/9733

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy