Skip to content

Commit

Permalink
secure-tunnel-server: install CA certificates (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
at-wat authored May 25, 2021
1 parent d3b8ecc commit 2dac50d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tunnel/cmd/secure-tunnel-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ WORKDIR /go/src/github.com/seqsense/aws-iot-device-sdk-go/tunnel/cmd/secure-tunn
RUN go build -tags netgo -installsuffix netgo -ldflags "-extldflags -static"
RUN cp secure-tunnel-server /usr/local/bin/

RUN apk add --no-cache ca-certificates

# =====================
FROM scratch

COPY --from=go-builder /usr/local/bin/secure-tunnel-server /usr/local/bin/
COPY --from=go-builder /usr/share/ca-certificates /usr/share/ca-certificates

CMD ["/usr/local/bin/secure-tunnel-server"]

0 comments on commit 2dac50d

Please sign in to comment.