Skip to content

Commit

Permalink
refactor: Update Dockerfile.development
Browse files Browse the repository at this point in the history
Simplify Dockerfile.development by removing redundant file copy and updating comments.
  • Loading branch information
luthfiarifin committed Sep 16, 2024
1 parent 669d014 commit 9931c6f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile.development
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ WORKDIR /code
# Copy only requirements first to leverage Docker cache
COPY ./requirements.txt ./

# Copy the main file
COPY ./main.py ./

# Install dependencies
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

Expand All @@ -14,8 +17,6 @@ RUN rm -rf ./app/data
# Copy the rest of the application code
COPY ./app ./app

# Copy the main file
COPY ./app.py ./

# Install FastAPI separately to leverage Docker cache
RUN pip install "fastapi[standard]"
Expand Down

0 comments on commit 9931c6f

Please sign in to comment.