File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- FROM golang:1.14 -alpine as builder
1+ FROM golang:1.15 -alpine as builder
22
33ENV BUILD_IN_DOCKER true
44
55# ca-certificates is needed to add the certificates on the next image
66# since it's FROM scratch, it does not have any certificates
77# bash is needed to run the build script
8- RUN apk update && apk add --no-cache bash git ca-certificates && update-ca-certificates
8+ RUN apk update && apk add --no-cache bash git
99
1010WORKDIR /go/src/github.com/scaleway/scaleway-cli
1111
@@ -20,8 +20,8 @@ COPY .git/ .git/
2020
2121RUN ./scripts/build.sh
2222
23- FROM scratch
23+ FROM alpine:3.12
2424WORKDIR /
25- COPY --from=builder /etc/ssl/certs/ ca-certificates.crt /etc/ssl/certs/
25+ RUN apk update && apk add --no-cache bash ca-certificates openssh-client && update-ca-certificates
2626COPY --from=builder /go/src/github.com/scaleway/scaleway-cli/scw .
2727ENTRYPOINT ["/scw" ]
You can’t perform that action at this time.
0 commit comments