dvirlabs a02ba81b84
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Add offline Python wheels and air-gapped deployment solution
2026-05-05 07:12:21 +03:00

25 lines
547 B
Docker

# Custom Python base image with build tools pre-installed
# Build this once and push to Harbor to avoid apt-get during app builds
FROM python:3.11-slim
# Install system dependencies that might be needed for Python packages
RUN apt-get update && apt-get install -y \
gcc \
g++ \
make \
postgresql-client \
libpq-dev \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
# Upgrade pip
RUN pip install --no-cache-dir --upgrade pip setuptools wheel
# Set working directory
WORKDIR /app
# Default command
CMD ["/bin/bash"]