From 1ff2db78c8d105f996179f325c6194bb728ef97e Mon Sep 17 00:00:00 2001 From: dvirlabs Date: Tue, 5 May 2026 06:49:57 +0300 Subject: [PATCH] Build and push backend --- backend/Dockerfile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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 . .