Skip to content

Commit

Permalink
Refactor Dockerfile to use find command for locating requirements.txt…
Browse files Browse the repository at this point in the history
… and install dependencies, and install the application in editable mode
  • Loading branch information
VikramxD committed Oct 17, 2024
1 parent 32fde2e commit db48139
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions DockerFileFolder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ RUN pip install --no-cache-dir -U pip setuptools wheel
# Use find to locate requirements.txt and install dependencies
RUN find /app -name requirements.txt -exec pip install --no-cache-dir -r {} \;

# Install the application in editable mode
RUN pip install --no-cache-dir -e .

# Set working directory for the application
WORKDIR /app/api

Expand Down

0 comments on commit db48139

Please sign in to comment.