Restructured docker images heirarchy

This commit is contained in:
Jamie Curnow
2022-01-10 22:10:42 +10:00
parent 30e4dce672
commit 44a795cf5f
9 changed files with 239 additions and 99 deletions
+21
View File
@@ -0,0 +1,21 @@
FROM nginxproxymanager/nginx-full:${CERTBOT_BASE_TAG:-certbot}
LABEL maintainer="Jamie Curnow <jc@jc21.com>"
ARG TARGETPLATFORM
RUN echo "Node: nginxproxymanager/nginx-full:${BASE_TAG:-certbot}, ${TARGETPLATFORM:-linux/amd64}" >> /built-for-arch
ENV CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
RUN curl -fsSL https://deb.nodesource.com/setup_16.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
# 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"