diff --git a/backend/Dockerfile b/backend/Dockerfile index 60606d8..26a4ee4 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -4,12 +4,15 @@ FROM harbor.dvirlabs.com/base-images/python:3.11-slim # Set working directory WORKDIR /app -# Copy requirements file +# Copy requirements file and pre-downloaded wheels COPY requirements.txt . +COPY wheels/ /tmp/wheels/ -# Install Python dependencies -# Note: psycopg2-binary is pre-compiled, no gcc needed -RUN pip install --no-cache-dir -r requirements.txt +# Install Python dependencies from local wheels (no internet needed) +# --no-index = Don't use PyPI +# --find-links = Look for packages in /tmp/wheels +RUN pip install --no-cache-dir --no-index --find-links /tmp/wheels -r requirements.txt && \ + rm -rf /tmp/wheels # Copy application code COPY . .