Skip to content
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

[ Fix ]: add layer caching in dockerFile #210

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

senthil-athiban
Copy link
Contributor

What does this PR do?

This PR closes #209, aims to improve the docker build by caching strategy.

Screenshot 2024-07-30 at 9 56 33 PM

Comment on lines +8 to -10
# Copy the requirements file first to leverage Docker's cache.
COPY /store/requirements.txt /app

# Install Python dependencies.
RUN pip install --no-cache-dir -r requirements.txt

COPY . /app
RUN pip install --no-cache-dir --upgrade .
Copy link
Member

Choose a reason for hiding this comment

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

cool, good catch :)

@codekansas codekansas enabled auto-merge (squash) July 30, 2024 17:51
@codekansas codekansas merged commit 0210e83 into kscalelabs:master Jul 30, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ FIX ]: Optimize Dockerfile for Layer Caching
2 participants