nginx-proxy-manager-zh/docker/dev/Dockerfile

54 lines
1.4 KiB
Docker
Raw Normal View History

FROM jc21/testca as testca
FROM letsencrypt/pebble as pebbleca
FROM jc21/nginx-full:acmesh-golang
LABEL maintainer="Jamie Curnow <jc@jc21.com>"
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
ARG GOPROXY
ARG GOPRIVATE
ENV GOPROXY=$GOPROXY \
GOPRIVATE=$GOPRIVATE \
S6_LOGGING=0 \
2021-04-28 18:28:40 -04:00
SUPPRESS_NO_CONFIG_WARNING=1 \
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 \
2023-02-25 07:52:42 -05:00
LE_WORKING_DIR=/data/.acme.sh \
CGO_ENABLED=0 \
2023-02-25 07:52:42 -05:00
GO111MODULE=on
RUN echo "fs.file-max = 65535" > /etc/sysctl.conf
# node, fail2ban
2023-04-11 07:24:18 -04:00
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
2021-04-28 18:28:40 -04:00
&& apt-get update \
&& apt-get install -y --no-install-recommends nodejs vim dnsutils fail2ban \
2022-07-14 07:53:11 -04:00
&& npm install --location=global yarn \
2021-04-28 18:28:40 -04:00
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /etc/fail2ban
2021-02-07 09:52:37 -05:00
# Task
RUN cd /usr \
&& curl -sL https://taskfile.dev/install.sh | sh \
&& cd /root
2023-02-24 03:31:46 -05:00
COPY docker/rootfs /
2021-02-07 09:52:37 -05:00
RUN rm -f /etc/nginx/conf.d/production.conf
# s6 overlay
2023-02-24 03:31:46 -05:00
COPY scripts/install-s6 /tmp/install-s6
RUN /tmp/install-s6 && rm -rf /tmp/*
# Fix for golang dev:
RUN chown -R 1000:1000 /opt/go
COPY --from=pebbleca /test/certs/pebble.minica.pem /etc/ssl/certs/pebble.minica.pem
COPY --from=testca /home/step/certs/root_ca.crt /etc/ssl/certs/NginxProxyManager.crt
EXPOSE 80
CMD [ "/init" ]
HEALTHCHECK --interval=15s --timeout=3s CMD curl -f http://127.0.0.1:81/api || exit 1