Skip to content

Commit

Permalink
Refactor Dockerfile to simplify installation of Python dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
VikramxD committed Oct 17, 2024
1 parent db48139 commit 7be3c20
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions DockerFileFolder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,9 @@ COPY --chown=user:user . /app

# Install Python dependencies
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 {} \;
RUN pip install --no-cache-dir -r /app/api/requirements.txt

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

# Set working directory for the application
Expand Down

0 comments on commit 7be3c20

Please sign in to comment.