File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -270,20 +270,16 @@ VOLUME /var/lib/nerdctl
270
270
ENTRYPOINT ["/docker-entrypoint.sh" ]
271
271
CMD ["bash" , "--login" , "-i" ]
272
272
273
- # convert GO_VERSION=1.16 to the latest release such as "go1.16.1"
274
- FROM golang:${GO_VERSION}-alpine AS goversion
275
- RUN go env GOVERSION > /GOVERSION
276
-
277
273
FROM base AS test-integration
278
274
ARG DEBIAN_FRONTEND=noninteractive
279
275
# `expect` package contains `unbuffer(1)`, which is used for emulating TTY for testing
280
276
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
281
277
expect \
282
278
git \
283
279
make
284
- COPY --from=goversion /GOVERSION /GOVERSION
280
+ # We wouldn't need this if Docker Hub could have "golang:${GO_VERSION}-ubuntu"
281
+ COPY --from=build-base-debian /usr/local/go /usr/local/go
285
282
ARG TARGETARCH
286
- RUN curl -fsSL --proto '=https' --tlsv1.2 https://golang.org/dl/$(cat /GOVERSION).linux-${TARGETARCH:-amd64}.tar.gz | tar xzvC /usr/local
287
283
ENV PATH=/usr/local/go/bin:$PATH
288
284
ARG GOTESTSUM_VERSION
289
285
RUN GOBIN=/usr/local/bin go install gotest.tools/gotestsum@${GOTESTSUM_VERSION}
You can’t perform that action at this time.
0 commit comments