mirror of
https://github.com/NginxProxyManager/docker-nginx-full.git
synced 2026-05-18 07:40:36 +00:00
dd72bc45b1
- OpenResty v1.29.2.4 Using the github tag since this fixes a fresh CVE-2026-42945 - Updated base debian image to trixie - Lua v5.5.0 - Luarocks v3.13.0 - Removed unused install script for Crowsec
40 lines
1.1 KiB
Docker
40 lines
1.1 KiB
Docker
ARG ACMESH_IMAGE=nginxproxymanager/nginx-full:acmesh
|
|
FROM golang:latest AS go
|
|
FROM $ACMESH_IMAGE AS final
|
|
ARG ACMESH_IMAGE
|
|
ARG TARGETPLATFORM
|
|
|
|
LABEL maintainer="Jamie Curnow <jc@jc21.com>"
|
|
|
|
RUN echo "Golang: $ACMESH_IMAGE, ${TARGETPLATFORM:-linux/amd64}" >> /built-for-arch
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y wget gcc g++ make git sqlite3 jq \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# copy go from golang
|
|
COPY --from=go /usr/local/go /usr/local/go
|
|
|
|
ENV GOPATH=/opt/go \
|
|
PATH="/usr/local/go/bin:$PATH:/opt/go/bin" \
|
|
ACMESH_CONFIG_HOME=/data/.acme.sh/config \
|
|
ACMESH_HOME=/data/.acme.sh \
|
|
CERT_HOME=/data/.acme.sh/certs \
|
|
LE_CONFIG_HOME=/data/.acme.sh/config \
|
|
LE_WORKING_DIR=/data/.acme.sh
|
|
|
|
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" \
|
|
&& chmod -R 777 "$GOPATH" \
|
|
&& echo "====> ${TARGETPLATFORM}: $(go version)"
|
|
|
|
WORKDIR /root
|
|
COPY ./files/.bashrc.acmesh-golang /root/.bashrc
|
|
|
|
# Gotools
|
|
COPY ./scripts/install-gotools.sh /tmp/install-gotools.sh
|
|
RUN /tmp/install-gotools.sh
|
|
|
|
LABEL org.label-schema.cmd="docker run --rm -ti nginxproxymanager/nginx-full:acmesh-golang"
|
|
|