From 36f897c24333304fc026ab872aa3b9f19cf3c0f8 Mon Sep 17 00:00:00 2001 From: Patrik Cyvoct Date: Tue, 27 Oct 2020 15:10:13 +0100 Subject: [PATCH] fix(docker): use alpine and add openssh-client Signed-off-by: Patrik Cyvoct --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1f6dc5d335..2f110f1349 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ -FROM golang:1.14-alpine as builder +FROM golang:1.15-alpine as builder ENV BUILD_IN_DOCKER true # ca-certificates is needed to add the certificates on the next image # since it's FROM scratch, it does not have any certificates # bash is needed to run the build script -RUN apk update && apk add --no-cache bash git ca-certificates && update-ca-certificates +RUN apk update && apk add --no-cache bash git WORKDIR /go/src/github.com/scaleway/scaleway-cli @@ -20,8 +20,8 @@ COPY .git/ .git/ RUN ./scripts/build.sh -FROM scratch +FROM alpine:3.12 WORKDIR / -COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ +RUN apk update && apk add --no-cache bash ca-certificates openssh-client && update-ca-certificates COPY --from=builder /go/src/github.com/scaleway/scaleway-cli/scw . ENTRYPOINT ["/scw"]