Files
cleveragents-core/Dockerfile
T
brent.edwards 945cced381
CI / lint (pull_request) Successful in 16s
CI / typecheck (pull_request) Successful in 24s
CI / security (pull_request) Successful in 17s
CI / quality (pull_request) Successful in 15s
CI / build (pull_request) Successful in 12s
CI / behave (3.13) (pull_request) Successful in 3m45s
CI / docker (pull_request) Failing after 6s
CI / coverage (pull_request) Successful in 4m12s
fix(ci): fix docker build job and Dockerfile
- Add DinD service container and docker:cli image so docker CLI is available
- Fix Dockerfile: remove missing uv.lock, fix build order (copy source before build)
- Remove helm job (k8s/ directory does not exist yet)
2026-02-12 06:17:36 +00:00

40 lines
845 B
Docker

# syntax=docker/dockerfile:1
FROM python:3.13-slim AS builder
# Install build dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
&& rm -rf /var/lib/apt/lists/*
# Install uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
# Set up working directory
WORKDIR /app
# Copy project metadata and source code
COPY pyproject.toml ./
COPY src/ ./src/
# Build wheel
RUN uv pip install --system build && \
python -m build --wheel --outdir /dist
# Runtime stage
FROM python:3.13-slim
# Create non-root user
RUN useradd -m -u 1000 appuser
# Install runtime dependencies
COPY --from=builder /dist/*.whl /tmp/
RUN pip install --no-cache-dir /tmp/*.whl && \
rm -rf /tmp/*
# Switch to non-root user
USER appuser
# Set entrypoint
ENTRYPOINT ["python", "-m", "cleveragents"]
CMD ["--help"]