From 1acd3637e6430aba4ac77fc42bd2e1d0e816dcef Mon Sep 17 00:00:00 2001 From: Jauder Ho Date: Mon, 19 Feb 2024 07:02:03 +0000 Subject: [PATCH] Update lego Dockerfile Signed-off-by: Jauder Ho --- lego/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lego/Dockerfile b/lego/Dockerfile index 7243fbb8aede..7a9fbd177f96 100644 --- a/lego/Dockerfile +++ b/lego/Dockerfile @@ -17,7 +17,9 @@ RUN test -n "${BUILD_VERSION}" \ && curl -L "${ARCHIVE_URL}${BUILD_VERSION}.tar.gz" -o /tmp/lego.tar.gz \ && tar xzf /tmp/lego.tar.gz --strip 1 -C /go/src/github.com/go-acme/lego \ && make build \ - && strip /go/src/github.com/go-acme/lego/dist/lego + && strip /go/src/github.com/go-acme/lego/dist/lego \ + && cp /go/src/github.com/go-acme/lego/dist/lego /go/src/github.com/go-acme/lego-bin \ + && make clean # ---------------------------------------------------------------------------- @@ -31,7 +33,7 @@ LABEL org.opencontainers.image.title="jauderho/lego" LABEL org.opencontainers.image.description="Let's Encrypt client and ACME library written in Go" COPY --from=build /etc/ssl/certs /etc/ssl/certs -COPY --from=build /go/src/github.com/go-acme/lego/dist/lego /usr/local/bin/lego +COPY --from=build /go/src/github.com/go-acme/lego-bin /usr/local/bin/lego #RUN lego --version