Skip to content

Commit

Permalink
refactor: Update Dockerfile.development to install dependencies from …
Browse files Browse the repository at this point in the history
…requirements.txt
  • Loading branch information
luthfiarifin committed Sep 16, 2024
1 parent 23430bf commit 6f86ae4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Dockerfile.development
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@ COPY ./requirements.txt ./
# Copy the main file
COPY ./main.py ./

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

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

# Remove "data" folder if it exists
RUN rm -rf ./app/data
Expand Down

0 comments on commit 6f86ae4

Please sign in to comment.