From 696bb9b84187d5d4ed36bcade76ab6f8a43df377 Mon Sep 17 00:00:00 2001 From: brunopadz Date: Fri, 15 Jul 2022 09:12:19 -0300 Subject: [PATCH] Update mkcert version --- Dockerfile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index a360737..b63e814 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,13 @@ -FROM golang:1.12-alpine +FROM alpine:3.15.4 AS build -RUN apk --no-cache add git +WORKDIR /mkcert -RUN go get -u github.com/FiloSottile/mkcert +RUN apk --no-cache add curl +RUN curl -JLO "https://dl.filippo.io/mkcert/v1.4.4?for=linux/amd64" && \ + chmod +x mkcert-v1.4.4-linux-amd64 -CMD ["mkcert"] +FROM scratch +COPY --from=build /mkcert/mkcert-v1.4.4-linux-amd64 ./mkcert + +CMD ["./mkcert"]