diff --git a/Dockerfile b/Dockerfile index 443c987..49389c2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,9 +2,14 @@ FROM golang:1.14-alpine AS builder ARG FULL_VERSION="unknown" WORKDIR /app COPY . /app -RUN CGO_ENABLED=0 go build -ldflags="-w -s -X main.VersionString=$FULL_VERSION" -o "/app/tinkoff-invest-dumper" +RUN \ + apk --update add ca-certificates && \ + CGO_ENABLED=0 go build \ + -ldflags="-w -s -X main.VersionString=$FULL_VERSION" \ + -o "/app/tinkoff-invest-dumper" FROM scratch WORKDIR /app +COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt COPY --from=builder /app/tinkoff-invest-dumper . ENTRYPOINT ["/app/tinkoff-invest-dumper"]