Skip to content

Commit

Permalink
fix: Optimize Dockerfile by rearranging requirements file copy
Browse files Browse the repository at this point in the history
  • Loading branch information
venkatamutyala committed Nov 15, 2024
1 parent 3ea24a3 commit 57c9d2e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ FROM python:3.11.9-alpine AS builder
# Set working directory
WORKDIR /app

# Copy the requirements file
COPY requirements.txt .

# Install build dependencies and dependencies in one layer
RUN pip install --no-cache-dir -r requirements.txt

# Copy the requirements file
COPY requirements.txt .


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

0 comments on commit 57c9d2e

Please sign in to comment.