Dockerfile32 lines · 754 chars FROM python:3.11-slim
ENV PYTHONUNBUFFERED=1
WORKDIR /workspace
# Install system dependencies
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first to leverage Docker cache (if present)
COPY requirements.txt requirements-common.txt ./
RUN python -m pip install --upgrade pip setuptools wheel
RUN pip install -r requirements.txt --no-cache-dir --progress-bar off
# Copy the project files
COPY . .
# Build nightly wheels from source
RUN python pip_build.py --nightly
# Install the package in editable mode for development/testing
RUN pip install -e "." --no-cache-dir
CMD ["/bin/bash"]