diff --git a/bazel/container/Containerfile b/bazel/container/Containerfile index 8008c766c..692a8fff7 100644 --- a/bazel/container/Containerfile +++ b/bazel/container/Containerfile @@ -1,6 +1,11 @@ # syntax=docker/dockerfile:1.5-labs FROM fedora:37 +# Self-documenting containers for the win. +COPY Containerfile Containerfile + +COPY entrypoint.sh entrypoint.sh + ARG TARGETOS ARG TARGETARCH ARG BAZEL_VERSION=6.1.0 @@ -31,4 +36,4 @@ WORKDIR /workspace RUN git config --global --add safe.directory /workspace && \ USE_BAZEL_VERSION=${BAZEL_VERSION} bazel version -ENTRYPOINT [ "/usr/local/bin/bazel" ] +ENTRYPOINT [ "/entrypoint.sh" ] diff --git a/bazel/container/entrypoint.sh b/bazel/container/entrypoint.sh new file mode 100755 index 000000000..00f1f6cc0 --- /dev/null +++ b/bazel/container/entrypoint.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +trap ' ' INT +sleep infinity +bazel shutdown