25 lines
977 B
Docker
25 lines
977 B
Docker
# Control plane only. Licensed compilers, model/agent runtimes and data are external.
|
|
ARG PYTHON_IMAGE=python:3.12-slim
|
|
FROM ${PYTHON_IMAGE}
|
|
ARG SOURCE_SHA256=unrecorded
|
|
LABEL org.opencontainers.image.title="bench-control" \
|
|
bench.source.archive.sha256="${SOURCE_SHA256}"
|
|
RUN apt-get update && apt-get install -y --no-install-recommends bash openssh-client util-linux procps ca-certificates \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
WORKDIR /opt/bench
|
|
COPY requirements.txt constraints.txt ./
|
|
RUN pip install --no-cache-dir -c constraints.txt -r requirements.txt
|
|
COPY bin ./bin
|
|
COPY harness ./harness
|
|
COPY registry ./registry
|
|
COPY agent ./agent
|
|
COPY export ./export
|
|
COPY scripts ./scripts
|
|
COPY docker ./docker
|
|
COPY docs ./docs
|
|
COPY config.yaml README.md CONTRACT.md ./
|
|
ENV BENCH_ROOT=/opt/bench BENCH_CONFIG=/opt/bench/docker/config.yaml \
|
|
BENCH_TOOLCHAINS=/opt/toolchains PYTHONPATH=/opt/bench PYTHONDONTWRITEBYTECODE=1
|
|
ENTRYPOINT ["/opt/bench/bin/bench"]
|
|
CMD ["--help"]
|