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 .
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"]
# Python __pycache__/ *.py[cod] *$py.class *.pyo *.pyd # Distribution / packaging build/ dist/ *.egg-info/ *.whl # Virtual environments venv/ ENV/ env/ .env/ .envs/ # Pytest / testing .pytest_cache/ .pytest_cache coverage.xml coverage/ # IDE / editors .vscode/ .idea/ *.swp *.swo # Misc *.log *.cache *.tmp *.backup *.bak # Node modules (if any) node_modules/ # Archives *.tar.gz *.zip
- Exact error message and exit code: - ERROR: Could not open requirements file: [Errno 2] No such file or directory: '/workspace/requirements-common.txt' - Exit code: 1 - Failing command/step: - Step [6/9] RUN pip install -r requirements.txt --no-cache-dir --progress-bar off - Missing packages or files mentioned: - Missing file: /workspace/requirements-common.txt - Likely cause: requirements.txt references -r requirements-common.txt (or similar), but requirements-common.txt is not present in the build context (only requirements.txt was copied in step 4). - Version/mismatch information: - Base image: python:3.11-slim - After this, step [9/9] upgrades occurred: pip upgraded to 26.0.1 (from 24.0), with setuptools to 82.0.1 and wheel to 0.46.3 (packaging 26.0 as well).
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"]
Smoke [PASS]: python -V