############################## # Stage 1: Builder ############################## FROM debian:trixie-slim AS builder ENV DEBIAN_FRONTEND=noninteractive # Install build dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential \ curl \ ca-certificates \ python3 \ python3-venv \ python3-pip \ ruby-full \ nodejs \ git \ && rm -rf /var/lib/apt/lists/* # Create a Python virtual environment (example usage) RUN python3 -m venv /opt/venv ############################## # Stage 2: Runtime ############################## FROM debian:trixie-slim ENV DEBIAN_FRONTEND=noninteractive # Install only runtime dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ ca-certificates \ python3 \ ruby-full \ nodejs \ git \ && rm -rf /var/lib/apt/lists/* # Copy built tools from builder COPY --from=builder /opt/venv /opt/venv # Set Python virtual environment path ENV PATH="/opt/venv/bin:$PATH" WORKDIR /workspace CMD ["bash"]