@@ -8,15 +8,16 @@ RUN git clone https://github.com/google/jsonnet && \
8
8
cp jsonnet/jsonnetfmt /usr/bin
9
9
10
10
# Build jb
11
- FROM golang:1.14.1-alpine3.11 AS jb-builder
12
- RUN apk add --no-cache git make
13
- RUN git clone https://github.com/jsonnet-bundler/jsonnet-bundler /jsonnet-bundler && \
14
- cd /jsonnet-bundler && \
15
- git checkout v0.2.0 && \
16
- make install
11
+ FROM alpine:3.11 AS jb-builder
12
+ ARG JSONNET_BUNDLER_VERSION=0.4.0
13
+ ARG JSONNET_BUNDLER_CHECKSUM="433edab5554a88a0371e11e93080408b225d41c31decf321c02b50d2e44993ce /usr/bin/jb"
14
+ RUN apk add --no-cache curl
15
+ RUN curl -fSL -o "/usr/bin/jb" "https://github.com/jsonnet-bundler/jsonnet-bundler/releases/download/v${JSONNET_BUNDLER_VERSION}/jb-linux-amd64"
16
+ RUN echo "${JSONNET_BUNDLER_CHECKSUM}" | sha256sum -c || (printf "wanted: %s\n got: %s\n " "${JSONNET_BUNDLER_CHECKSUM}" "$(sha256sum /usr/bin/jb)" ; exit 1)
17
+ RUN chmod +x /usr/bin/jb
17
18
18
19
# Build tanka
19
- FROM golang:1.14.1-alpine3. 11 as tk-builder
20
+ FROM alpine:3. 11 AS tk-builder
20
21
ARG TANKA_VERSION=0.11.1
21
22
ARG TANKA_CHECKSUM="3b253ca7d7bf01189604c10a8f7cead20a553ddc04c813f0f836d80338cfad71 /usr/bin/tk"
22
23
RUN apk add --no-cache curl
@@ -28,5 +29,5 @@ FROM alpine:3.11
28
29
RUN apk add --no-cache git make libgcc libstdc++ zip
29
30
COPY --from=jsonnet-builder /usr/bin/jsonnetfmt /usr/bin
30
31
COPY --from=jsonnet-builder /usr/bin/jsonnet /usr/bin
31
- COPY --from=jb-builder /go /bin/jb /usr/bin
32
+ COPY --from=jb-builder /usr /bin/jb /usr/bin
32
33
COPY --from=tk-builder /usr/bin/tk /usr/bin
0 commit comments