forked from nadirizr/dazel
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
15 lines (13 loc) · 721 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM debian:9.3-slim
MAINTAINER Nadir Izrael [email protected]
ENV BAZEL_VERSION 0.13.0
# Creating the man pages directory to deal with the slim variants not having it.
RUN mkdir -p /usr/share/man/man1 \
&& apt-get update && apt-get install -y --no-install-recommends ca-certificates curl gnupg \
&& echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" > \
/etc/apt/sources.list.d/bazel.list \
&& curl https://bazel.build/bazel-release.pub.gpg | apt-key add - \
&& apt-get update && apt-get install -y --no-install-recommends bazel=${BAZEL_VERSION} \
&& apt-get purge --auto-remove -y curl gnupg \
&& rm -rf /etc/apt/sources.list.d/bazel.list \
&& rm -rf /var/lib/apt/lists/*