grim/wasdead

Parents 03c5518f4164
Children be710dbf5a0a
Add ca-certificates to the build container and copy it to the final image
  • +7 -0
    Dockerfile
  • --- a/Dockerfile Wed Jun 05 23:58:49 2019 -0500
    +++ b/Dockerfile Thu Jun 06 00:04:55 2019 -0500
    @@ -1,5 +1,11 @@
    FROM golang:1.12 AS build
    +RUN set -ex && \
    + apt-get update && \
    + apt-get install -y --no-install-recommends ca-certificates && \
    + apt-get clean && \
    + rm -rf /var/lib/apt/lists
    +
    COPY . /nowdead
    WORKDIR /nowdead
    @@ -8,6 +14,7 @@
    FROM scratch
    +COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
    COPY --from=build /nowdead/nowdead /nowdead
    CMD ["/nowdead", "run"]