-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
31 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
ENV PKG="build-base linux-headers openssl-dev pcre-dev curl zlib-dev git go" | ||
|
||
RUN \ | ||
apk --no-cache add ${PKG} && \ | ||
|
@@ -47,12 +47,18 @@ RUN \ | |
--with-http_v2_module && \ | ||
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 | ||
|
||
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 | ||
|
||
RUN addgroup -S ${XUSER} && \ | ||
adduser -D -S -h /var/cache/nginx -s /sbin/nologin -G ${XUSER} ${XUSER} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters