Skip to content

Commit

Permalink
(fix): add layer caching in dockerFile (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
senthil-athiban authored Jul 30, 2024
1 parent 159765a commit 0210e83
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ FROM python:3.11-slim

WORKDIR /app

# Copy code and install Python dependencies.
# 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 .

# Expose the port that the application runs on.
EXPOSE 8080
Expand Down

0 comments on commit 0210e83

Please sign in to comment.