Files
cleveragents-core/Dockerfile
T
CoreRasurae aaf7625c18
CI / push-validation (pull_request) Successful in 22s
CI / helm (pull_request) Successful in 33s
CI / lint (pull_request) Successful in 3m57s
CI / quality (pull_request) Successful in 4m17s
CI / typecheck (pull_request) Successful in 4m27s
CI / security (pull_request) Successful in 4m35s
CI / unit_tests (pull_request) Successful in 8m44s
CI / docker (pull_request) Successful in 2m17s
CI / build (pull_request) Successful in 3m32s
CI / coverage (pull_request) Successful in 15m15s
CI / integration_tests (pull_request) Successful in 6m35s
CI / e2e_tests (pull_request) Successful in 7m5s
CI / benchmark-regression (push) Waiting to run
CI / benchmark-publish (push) Waiting to run
CI / status-check (pull_request) Successful in 3s
CI / push-validation (push) Successful in 21s
CI / helm (push) Successful in 29s
CI / build (push) Successful in 3m47s
CI / lint (push) Successful in 3m56s
CI / quality (push) Successful in 4m21s
CI / typecheck (push) Successful in 4m33s
CI / security (push) Successful in 4m57s
CI / integration_tests (push) Successful in 7m30s
CI / e2e_tests (push) Successful in 8m24s
CI / unit_tests (push) Successful in 9m48s
CI / docker (push) Successful in 1m37s
CI / coverage (push) Successful in 13m34s
CI / status-check (push) Successful in 3s
CI / benchmark-publish (pull_request) Has been skipped
CI / benchmark-regression (pull_request) Failing after 1h7m38s
build(docker): Fix entrypoint start-up user directory to /app
2026-04-21 19:21:24 +01:00

41 lines
868 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 README.md ./
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
WORKDIR /app
# Set entrypoint
ENTRYPOINT ["python", "-m", "cleveragents"]
CMD ["--help"]