Skip to content

Commit feafe6a

Browse files
Sh4d1remyleone
andauthored
fix(docker): use alpine and add openssh-client (#1502)
Signed-off-by: Patrik Cyvoct <[email protected]> Co-authored-by: Rémy Léone <[email protected]>
1 parent b67adbb commit feafe6a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM golang:1.14-alpine as builder
1+
FROM golang:1.15-alpine as builder
22

33
ENV 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

1010
WORKDIR /go/src/github.com/scaleway/scaleway-cli
1111

@@ -20,8 +20,8 @@ COPY .git/ .git/
2020

2121
RUN ./scripts/build.sh
2222

23-
FROM scratch
23+
FROM alpine:3.12
2424
WORKDIR /
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
2626
COPY --from=builder /go/src/github.com/scaleway/scaleway-cli/scw .
2727
ENTRYPOINT ["/scw"]

0 commit comments

Comments
 (0)