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
|
# 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 . .
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user