From 534a8369a34e7b7df8167098eef98259cc109837 Mon Sep 17 00:00:00 2001 From: Guilherme Thomazi Bonicontro Date: Mon, 30 Apr 2018 16:41:09 +0200 Subject: [PATCH] updating dockerimage to use alpine as base (needs ca-certificates package) --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0d924a6..d9f390b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,8 +7,10 @@ RUN go get -v -d github.com/guitmz/n26/cmd/n26 RUN CGO_ENABLED=0 GOOS=linux go install -v -a -ldflags '-s -w -extldflags "-static"' github.com/guitmz/n26/cmd/n26 # final stage -FROM scratch +FROM alpine COPY --from=build-env /go/bin/n26 / +RUN apk add --no-cache ca-certificates + ENTRYPOINT [ "/n26" ]