Skip to content

Commit c623682

Browse files
committed
Clean up Bazel build artifacts after installation
Signed-off-by: Matthieu MOREL <[email protected]>
1 parent 82ea7bd commit c623682

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bazel/external/Dockerfile.bazel

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,5 @@ RUN curl -LO https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSI
7878
# If it takes more than 2 hours, restart the Docker build.
7979
ENV EXTRA_BAZEL_ARGS="--tool_java_runtime_version=local_jdk"
8080
RUN ./compile.sh && \
81-
cp /output/bazel /usr/bin/bazel
81+
mv /output/bazel /usr/bin/bazel && \
82+
rm -rf /root/bazel /root/bazel-${BAZEL_VERSION}-dist.zip

0 commit comments

Comments
 (0)