Skip to content

Commit

Permalink
Refactor Dockerfile to simplify installation of Python dependencies a…
Browse files Browse the repository at this point in the history
…nd improve code organization
  • Loading branch information
VikramxD committed Oct 17, 2024
1 parent 7be3c20 commit 0ac5d7f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion DockerFileFolder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,17 @@ USER user
# Copy the entire application code
COPY --chown=user:user . /app

# Debug: List contents of /app and /app/api
RUN ls -la /app && echo "Contents of /app/api:" && ls -la /app/api

# Install Python dependencies
RUN pip install --no-cache-dir -U pip setuptools wheel
RUN pip install --no-cache-dir -r /app/api/requirements.txt

# Debug: Check if requirements.txt exists
RUN if [ -f "/app/api/requirements.txt" ]; then echo "requirements.txt exists"; else echo "requirements.txt does not exist"; fi

# Attempt to install requirements
RUN pip install --no-cache-dir -r /app/api/requirements.txt || echo "Failed to install requirements"

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

0 comments on commit 0ac5d7f

Please sign in to comment.