Skip to content

Commit

Permalink
try to reduce go bin
Browse files Browse the repository at this point in the history
  • Loading branch information
Mon-ius committed Mar 8, 2024
1 parent cfd9f05 commit 3cd251e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dev/BASE
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,17 @@ RUN \
make -j"$(nproc)" && make install

RUN \
git clone --depth 1 --branch master https://github.com/go-acme/lego.git && \
cd lego && make build && \
mv dist/lego /usr/sbin
GO111MODULE=on \
GOBIN=/usr/bin/ \
go install github.com/go-acme/lego/v4/cmd/lego@latest

FROM alpine:3.19
ENV XUSER nginx

RUN apk --no-cache add ca-certificates openssl pcre zlib tzdata git

COPY --from=NGINX /usr/sbin/nginx /usr/sbin/nginx
COPY --from=NGINX /usr/sbin/lego /usr/sbin/lego
COPY --from=NGINX /usr/bin/lego /usr/bin/lego

RUN addgroup -S ${XUSER} && \
adduser -D -S -h /var/cache/nginx -s /sbin/nologin -G ${XUSER} ${XUSER}
Expand Down

0 comments on commit 3cd251e

Please sign in to comment.