fix: switch docker image to alpine to avoid certificate errors

This commit is contained in:
 Ilya Atamas
2019-04-22 15:28:15 +03:00
parent 6bde6faedc
commit 778c92c3b9
2 changed files with 8 additions and 1 deletions

View File

@@ -16,8 +16,14 @@ RUN go test -v ./...
RUN go build -ldflags="-w -s" -o build
# === RUN STAGE === #
FROM scratch as run
FROM alpine as run
RUN apk update \
&& apk upgrade \
&& apk add --no-cache ca-certificates \
&& update-ca-certificates \
&& rm -rf /var/cache/apk/*
WORKDIR /srv/app
COPY --from=build /srv/app/build /srv/app/build