Build and push backend
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
dvirlabs 2026-05-05 06:49:57 +03:00
parent 535a17af29
commit 1ff2db78c8

View File

@ -4,12 +4,15 @@ FROM harbor.dvirlabs.com/base-images/python:3.11-slim
# Set working directory # Set working directory
WORKDIR /app WORKDIR /app
# Copy requirements file # Copy requirements file and pre-downloaded wheels
COPY requirements.txt . COPY requirements.txt .
COPY wheels/ /tmp/wheels/
# Install Python dependencies # Install Python dependencies from local wheels (no internet needed)
# Note: psycopg2-binary is pre-compiled, no gcc needed # --no-index = Don't use PyPI
RUN pip install --no-cache-dir -r requirements.txt # --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 application code
COPY . . COPY . .