diff --git a/Dockerfile b/Dockerfile index 3c96f711..19b3e71a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,19 +12,11 @@ COPY . . RUN go get github.com/markbates/pkger/cmd/pkger RUN VERSION=$version COMMIT=$commit make build-linux - -FROM alpine:3.12.0 as alpine +FROM alpine:3.12 RUN apk --no-cache --update add ca-certificates tzdata && update-ca-certificates - -FROM scratch -COPY --from=alpine /usr/share/zoneinfo /usr/share/zoneinfo -COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ -COPY --from=alpine /etc/passwd /etc/passwd - USER nobody COPY --from=build-env /go/src/github.com/fairwindsops/pluto / WORKDIR /opt/app - ENTRYPOINT ["/pluto"]