pidgin/carrier
Clone
Summary
Browse
Changes
Graph
Copy in ca-certs from the build container to the resulting container
draft
2019-05-14, Gary Kramlich
ca0c732f744b
Copy in ca-certs from the build container to the resulting container
FROM
golang:stretch
AS
build
WORKDIR
/app
COPY
.
.
RUN
CGO_ENABLED
=
0
GOOS
=
linux
go
build
-o
carrier
-a
-ldflags
'-extldflags "-static" -s'
.
FROM
scratch
CMD
[
"/carrier"
]
COPY
--from
=
build
/etc/ssl/certs/ca-certificates.crt
/etc/ssl/certs/ca-certificates.crt
COPY
--from
=
build
/app/carrier
/carrier