Skip to content

Commit

Permalink
use acme instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Mon-ius committed Mar 8, 2024
1 parent 3cd251e commit 4213cf0
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions dev/BASE
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LABEL maintainer="M0nius <[email protected]>" \
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} && \
Expand Down Expand Up @@ -47,18 +47,15 @@ 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

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 protected]

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

0 comments on commit 4213cf0

Please sign in to comment.