Skip to content

Commit

Permalink
Update lego Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Jauder Ho <jauderho@users.noreply.github.com>
  • Loading branch information
jauderho committed Feb 19, 2024
1 parent 4061ca5 commit 1acd363
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lego/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

# ----------------------------------------------------------------------------

Expand All @@ -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

Expand Down

0 comments on commit 1acd363

Please sign in to comment.