diff --git a/dev/BASE b/dev/BASE index d08ac7e..619d4fb 100644 --- a/dev/BASE +++ b/dev/BASE @@ -7,7 +7,7 @@ LABEL maintainer="M0nius " \ ENV XUSER="nginx" ENV VER="1.25.3" ENV NGINX_SRC="https://nginx.org/download/nginx-${VER}.tar.gz" -ENV PKG="build-base linux-headers openssl-dev pcre-dev curl zlib-dev git go" +ENV PKG="build-base linux-headers openssl-dev pcre-dev curl zlib-dev" RUN \ apk --no-cache add ${PKG} && \ @@ -47,10 +47,6 @@ RUN \ --with-http_v2_module && \ make -j"$(nproc)" && make install -RUN \ - GO111MODULE=on \ - GOBIN=/usr/bin/ \ - go install github.com/go-acme/lego/v4/cmd/lego@latest FROM alpine:3.19 ENV XUSER nginx @@ -58,7 +54,8 @@ 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/bin/lego /usr/bin/lego + +RUN curl -fsSL https://get.acme.sh | sh -s email=a@b.c RUN addgroup -S ${XUSER} && \ adduser -D -S -h /var/cache/nginx -s /sbin/nologin -G ${XUSER} ${XUSER}