Skip to content

Commit

Permalink
fix ca certs
Browse files Browse the repository at this point in the history
  • Loading branch information
a0s committed Aug 25, 2020
1 parent ec762a5 commit 94673ca
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 94673ca

Please sign in to comment.