-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
28 lines (22 loc) · 930 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM ubuntu:22.04
ARG TARGETOS
ARG TARGETARCH
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
# Installation of general dependencies
RUN apt-get install -y \
g++ gcc clang-format clang-tidy lcov \
wget git git-lfs \
openjdk-11-jdk openjdk-11-jre \
libssl-dev libuv1-dev
# Installation of Bazel Package
RUN wget https://github.com/bazelbuild/bazelisk/releases/download/v1.11.0/bazelisk-${TARGETOS}-${TARGETARCH} && \
chmod +x bazelisk-${TARGETOS}-${TARGETARCH} && \
mv bazelisk-${TARGETOS}-${TARGETARCH} /usr/bin/bazel
# Installation of Bazel Tools
RUN wget https://github.com/bazelbuild/buildtools/releases/download/5.0.1/buildifier-${TARGETOS}-${TARGETARCH} && \
chmod +x buildifier-${TARGETOS}-${TARGETARCH} && \
mv buildifier-${TARGETOS}-${TARGETARCH} /usr/bin/buildifier
# cleanup
RUN apt-get clean && rm -rf /var/lib/apt/lists/* && \
apt-get autoremove -y && apt-get autoclean