• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1FROM python:3.10.11-bullseye
2
3RUN apt-get update
4
5RUN apt-get install -y \
6    zip \
7    build-essential \
8    python-dev \
9    python3-dev \
10    openjdk-11-jdk \
11    pkg-config \
12    openssl \
13    libcurl4-openssl-dev
14
15RUN mkdir -p /tools
16WORKDIR /tools
17RUN curl -L https://github.com/bazelbuild/bazelisk/releases/download/v1.12.0/bazelisk-linux-amd64 -o bazelisk
18RUN chmod +x bazelisk
19RUN curl -L https://github.com/bazelbuild/bazel/releases/download/6.0.0/bazel-6.0.0-linux-x86_64 -o bazel
20RUN chmod +x bazel
21WORKDIR /
22
23ENV PATH="/tools:${PATH}"
24
25ENV BAZELISK_BIN=/tools/bazelisk
26ENV BAZEL_BIN=/tools/bazelisk
27
28RUN apt-get clean
29
30# Ask Bazel to use C++14 by default.
31# Note: Bazel will use this system-wide configuration file and will merge it
32# with other bazelrc file it finds: https://bazel.build/run/bazelrc
33RUN echo 'build --repo_env=BAZEL_CXXOPTS="-std=c++14"' > /etc/bazel.bazelrc
34
35ENTRYPOINT [ "/bin/bash" ]
36