File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ FROM debian:latest as base
66FROM base as build
77WORKDIR /app
88
9+ # Add build argument for prebuilt binaries
10+ ARG PREBUILT_BINS=false
11+
912RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
1013 --mount=type=cache,target=/var/lib/apt/lists,sharing=locked \
1114 rm -f /etc/apt/apt.conf.d/docker-clean && \
@@ -42,7 +45,12 @@ RUN --mount=type=cache,target=/root/.cache/pip \
4245COPY . .
4346
4447RUN --mount=type=cache,target=/app/artefacts \
45- invoke build-benchmarks
48+ if [ "$USE_PREBUILT_BINARIES" = "false" ]; then \
49+ invoke build-benchmarks; \
50+ else \
51+ echo "Using prebuilt binaries" ; \
52+ fi
53+
4654
4755FROM scratch as log_export
4856COPY --from=build /app/experiment.log /docker-run-full.log
You can’t perform that action at this time.
0 commit comments