Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
Paul Meyer 2023-05-05 15:04:37 +02:00
parent 5301534aee
commit 342fdfc146
2 changed files with 11 additions and 1 deletions

View File

@ -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" ]

5
bazel/container/entrypoint.sh Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
trap ' ' INT
sleep infinity
bazel shutdown