File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change 1
- FROM alpine:3.6
1
+ FROM alpine:latest
2
2
3
3
MAINTAINER davido
4
4
@@ -13,30 +13,26 @@ RUN apk add --no-cache --virtual=.build-deps \
13
13
bash \
14
14
curl \
15
15
g++ \
16
- linux-headers \
17
- make \
18
16
musl-dev \
19
17
openjdk8 \
20
18
sed \
21
- zip
19
+ zip \
20
+ libarchive \
21
+ unzip
22
22
23
23
# Install glibc: https://github.com/bazelbuild/rules_closure/issues/228
24
24
RUN apk --no-cache add ca-certificates wget \
25
25
&& wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://raw.githubusercontent.com/sgerrand/alpine-pkg-glibc/master/sgerrand.rsa.pub \
26
26
&& wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.26-r0/glibc-2.26-r0.apk \
27
27
&& apk add glibc-2.26-r0.apk
28
28
29
- # Install Bazel from source: https://github.com/bazelbuild/bazel/issues/4034
30
- ENV BAZEL_VERSION 0.8.0rc1
29
+ # Install Bazel
30
+ ENV BAZEL_VERSION 0.7.0
31
31
ENV JAVA_HOME /usr/lib/jvm/java-1.8-openjdk
32
32
33
- # curl -SLO https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-dist.zip \
34
- RUN curl -SLO https://releases.bazel.build/0.8.0/rc1/bazel-0.8.0rc1-dist.zip \
35
- && mkdir bazel-${BAZEL_VERSION} \
36
- && unzip -qd bazel-${BAZEL_VERSION} bazel-${BAZEL_VERSION}-dist.zip \
37
- && cd bazel-${BAZEL_VERSION} \
38
- && bash compile.sh \
39
- && cp -p output/bazel /usr/bin/
33
+ RUN wget -q -O /etc/apk/keys/
[email protected] https://raw.githubusercontent.com/davido/bazel-alpine-package/master/
[email protected] \
34
+ && wget https://github.com/davido/bazel-alpine-package/releases/download/0.7.0/bazel-0.7.0-r1.apk \
35
+ && apk add bazel-0.7.0-r1.apk
40
36
41
37
# Add links to javac and jar
42
38
RUN cd /usr/bin \
You can’t perform that action at this time.
0 commit comments