mirror of
https://github.com/NginxProxyManager/docker-nginx-full.git
synced 2026-05-18 07:40:36 +00:00
28 lines
830 B
Docker
28 lines
830 B
Docker
ARG CERTBOT_IMAGE=nginxproxymanager/nginx-full:certbot
|
|
FROM $CERTBOT_IMAGE AS final
|
|
ARG CERTBOT_IMAGE
|
|
ARG TARGETPLATFORM
|
|
|
|
LABEL maintainer="Jamie Curnow <jc@jc21.com>"
|
|
|
|
RUN echo "Node: $CERTBOT_IMAGE, ${TARGETPLATFORM:-linux/amd64}" >> /built-for-arch
|
|
|
|
ENV CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
|
|
|
|
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
|
|
&& apt-get update \
|
|
&& apt-get install -y gcc make g++ git nodejs \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& npm install -g yarn \
|
|
&& ln -s /usr/bin/python3 /usr/bin/python
|
|
|
|
COPY ./files/.bashrc.certbot-node /root/.bashrc
|
|
|
|
# Check nodejs works on this architecture
|
|
COPY ./files/test.js /tmp/test.js
|
|
RUN node /tmp/test.js \
|
|
&& rm -f /tmp/test.js
|
|
|
|
LABEL org.label-schema.cmd="docker run --rm -ti nginxproxymanager/nginx-full:certbot-node"
|