@@ -10,34 +10,34 @@ RUN apt-get install -y nodejs && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
10
10
# and viceversa.
11
11
12
12
13
- ENV HUGO_VERSION=v0.72.0
14
- RUN git clone https://github.com/gohugoio /hugo.git --branch ${HUGO_VERSION} --depth 1 && \
13
+ ENV HUGO_VERSION=v0.94.3
14
+ RUN git clone https://github.com/alvinlin123 /hugo.git --branch ${HUGO_VERSION} --depth 1 && \
15
15
cd hugo && go install --tags extended && cd ../ && \
16
16
rm -rf hugo/ && rm -rf /go/pkg /go/src /root/.cache
17
17
18
18
ENV SHFMT_VERSION=3.2.4
19
19
RUN GOARCH=$(go env GOARCH) && \
20
20
if [ "$GOARCH" = "amd64" ]; then \
21
- DIGEST=3f5a47f8fec27fae3e06d611559a2063f5d27e4b9501171dde9959b8c60a3538; \
22
- elif [ "$GOARCH" = "arm64" ]; then \
23
- DIGEST=6474d9cc08a1c9fe2ef4be7a004951998e3067d46cf55a011ddd5ff7bfab3de6; \
24
- fi && \
25
- URL=https://github.com/mvdan/sh/releases/download/v${SHFMT_VERSION}/shfmt_v${SHFMT_VERSION}_linux_${GOARCH}; \
26
- curl -fsSLo shfmt "${URL}" && \
21
+ DIGEST=3f5a47f8fec27fae3e06d611559a2063f5d27e4b9501171dde9959b8c60a3538; \
22
+ elif [ "$GOARCH" = "arm64" ]; then \
23
+ DIGEST=6474d9cc08a1c9fe2ef4be7a004951998e3067d46cf55a011ddd5ff7bfab3de6; \
24
+ fi && \
25
+ URL=https://github.com/mvdan/sh/releases/download/v${SHFMT_VERSION}/shfmt_v${SHFMT_VERSION}_linux_${GOARCH}; \
26
+ curl -fsSLo shfmt "${URL}" && \
27
27
echo "$DIGEST shfmt" | sha256sum -c && \
28
28
chmod +x shfmt && \
29
29
mv shfmt /usr/bin
30
30
31
31
RUN curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b /usr/bin v1.27.0
32
32
33
33
RUN GO111MODULE=on go get \
34
- github.com/client9/misspell/cmd/
[email protected] \
35
- github.com/golang/protobuf/
[email protected] \
36
- github.com/gogo/protobuf/
[email protected] \
37
- github.com/gogo/protobuf/
[email protected] \
38
- github.com/weaveworks/tools/cover@bdd647e92546027e12cdde3ae0714bb495e43013 \
39
- github.com/fatih/
[email protected] \
40
- github.com/campoy/
[email protected] \
34
+ github.com/client9/misspell/cmd/
[email protected] \
35
+ github.com/golang/protobuf/
[email protected] \
36
+ github.com/gogo/protobuf/
[email protected] \
37
+ github.com/gogo/protobuf/
[email protected] \
38
+ github.com/weaveworks/tools/cover@bdd647e92546027e12cdde3ae0714bb495e43013 \
39
+ github.com/fatih/
[email protected] \
40
+ github.com/campoy/
[email protected] \
41
41
&& rm -rf /go/pkg /go/src /root/.cache
42
42
43
43
ENV NODE_PATH=/usr/lib/node_modules
@@ -47,5 +47,5 @@ ENTRYPOINT ["/build.sh"]
47
47
48
48
ARG revision
49
49
LABEL org.opencontainers.image.title="build-image" \
50
- org.opencontainers.image.source="https://github.com/cortexproject/cortex/tree/master/build-image" \
51
- org.opencontainers.image.revision="${revision}"
50
+ org.opencontainers.image.source="https://github.com/cortexproject/cortex/tree/master/build-image" \
51
+ org.opencontainers.image.revision="${revision}"
0 commit comments