This commit is contained in:
parent
535a17af29
commit
1ff2db78c8
@ -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 . .
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user