Format files

This commit is contained in:
Eric Nemchik 2021-04-27 10:08:22 -05:00
parent 870cd4bd93
commit e2e39b9f89
11 changed files with 434 additions and 434 deletions

View file

@ -12,148 +12,148 @@ ENV DHLEVEL=2048 ONLY_SUBDOMAINS=false AWS_CONFIG_FILE=/config/dns-conf/route53.
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2 ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2
RUN \ RUN \
echo "**** install build packages ****" && \ echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-dependencies \ apk add --no-cache --virtual=build-dependencies \
cargo \ cargo \
g++ \ g++ \
gcc \ gcc \
libffi-dev \ libffi-dev \
openssl-dev \ openssl-dev \
python3-dev && \ python3-dev && \
echo "**** install runtime packages ****" && \ echo "**** install runtime packages ****" && \
apk add --no-cache --upgrade \ apk add --no-cache --upgrade \
curl \ curl \
fail2ban \ fail2ban \
gnupg \ gnupg \
memcached \ memcached \
nginx \ nginx \
nginx-mod-http-brotli \ nginx-mod-http-brotli \
nginx-mod-http-dav-ext \ nginx-mod-http-dav-ext \
nginx-mod-http-echo \ nginx-mod-http-echo \
nginx-mod-http-fancyindex \ nginx-mod-http-fancyindex \
nginx-mod-http-geoip2 \ nginx-mod-http-geoip2 \
nginx-mod-http-headers-more \ nginx-mod-http-headers-more \
nginx-mod-http-image-filter \ nginx-mod-http-image-filter \
nginx-mod-http-nchan \ nginx-mod-http-nchan \
nginx-mod-http-perl \ nginx-mod-http-perl \
nginx-mod-http-redis2 \ nginx-mod-http-redis2 \
nginx-mod-http-set-misc \ nginx-mod-http-set-misc \
nginx-mod-http-upload-progress \ nginx-mod-http-upload-progress \
nginx-mod-http-xslt-filter \ nginx-mod-http-xslt-filter \
nginx-mod-mail \ nginx-mod-mail \
nginx-mod-rtmp \ nginx-mod-rtmp \
nginx-mod-stream \ nginx-mod-stream \
nginx-mod-stream-geoip2 \ nginx-mod-stream-geoip2 \
nginx-vim \ nginx-vim \
php7-bcmath \ php7-bcmath \
php7-bz2 \ php7-bz2 \
php7-ctype \ php7-ctype \
php7-curl \ php7-curl \
php7-dom \ php7-dom \
php7-exif \ php7-exif \
php7-ftp \ php7-ftp \
php7-gd \ php7-gd \
php7-gmp \ php7-gmp \
php7-iconv \ php7-iconv \
php7-imap \ php7-imap \
php7-intl \ php7-intl \
php7-ldap \ php7-ldap \
php7-mcrypt \ php7-mcrypt \
php7-memcached \ php7-memcached \
php7-mysqli \ php7-mysqli \
php7-mysqlnd \ php7-mysqlnd \
php7-opcache \ php7-opcache \
php7-pdo_mysql \ php7-pdo_mysql \
php7-pdo_odbc \ php7-pdo_odbc \
php7-pdo_pgsql \ php7-pdo_pgsql \
php7-pdo_sqlite \ php7-pdo_sqlite \
php7-pear \ php7-pear \
php7-pecl-apcu \ php7-pecl-apcu \
php7-pecl-mailparse \ php7-pecl-mailparse \
php7-pecl-redis \ php7-pecl-redis \
php7-pgsql \ php7-pgsql \
php7-phar \ php7-phar \
php7-posix \ php7-posix \
php7-soap \ php7-soap \
php7-sockets \ php7-sockets \
php7-sodium \ php7-sodium \
php7-sqlite3 \ php7-sqlite3 \
php7-tokenizer \ php7-tokenizer \
php7-xml \ php7-xml \
php7-xmlreader \ php7-xmlreader \
php7-xmlrpc \ php7-xmlrpc \
php7-xsl \ php7-xsl \
php7-zip \ php7-zip \
py3-cryptography \ py3-cryptography \
py3-future \ py3-future \
py3-pip \ py3-pip \
whois && \ whois && \
echo "**** install certbot plugins ****" && \ echo "**** install certbot plugins ****" && \
if [ -z ${CERTBOT_VERSION+x} ]; then \ if [ -z ${CERTBOT_VERSION+x} ]; then \
CERTBOT="certbot"; \ CERTBOT="certbot"; \
else \ else \
CERTBOT="certbot==${CERTBOT_VERSION}"; \ CERTBOT="certbot==${CERTBOT_VERSION}"; \
fi && \ fi && \
pip3 install -U \ pip3 install -U \
pip && \ pip && \
pip3 install -U \ pip3 install -U \
${CERTBOT} \ ${CERTBOT} \
certbot-dns-aliyun \ certbot-dns-aliyun \
certbot-dns-cloudflare \ certbot-dns-cloudflare \
certbot-dns-cloudxns \ certbot-dns-cloudxns \
certbot-dns-cpanel \ certbot-dns-cpanel \
certbot-dns-digitalocean \ certbot-dns-digitalocean \
certbot-dns-directadmin \ certbot-dns-directadmin \
certbot-dns-dnsimple \ certbot-dns-dnsimple \
certbot-dns-dnsmadeeasy \ certbot-dns-dnsmadeeasy \
certbot-dns-domeneshop \ certbot-dns-domeneshop \
certbot-dns-google \ certbot-dns-google \
certbot-dns-hetzner \ certbot-dns-hetzner \
certbot-dns-inwx \ certbot-dns-inwx \
certbot-dns-linode \ certbot-dns-linode \
certbot-dns-luadns \ certbot-dns-luadns \
certbot-dns-netcup \ certbot-dns-netcup \
certbot-dns-njalla \ certbot-dns-njalla \
certbot-dns-nsone \ certbot-dns-nsone \
certbot-dns-ovh \ certbot-dns-ovh \
certbot-dns-rfc2136 \ certbot-dns-rfc2136 \
certbot-dns-route53 \ certbot-dns-route53 \
certbot-dns-transip \ certbot-dns-transip \
certbot-dns-vultr \ certbot-dns-vultr \
certbot-plugin-gandi \ certbot-plugin-gandi \
cryptography \ cryptography \
requests && \ requests && \
echo "**** remove unnecessary fail2ban filters ****" && \ echo "**** remove unnecessary fail2ban filters ****" && \
rm \ rm \
/etc/fail2ban/jail.d/alpine-ssh.conf && \ /etc/fail2ban/jail.d/alpine-ssh.conf && \
echo "**** copy fail2ban default action and filter to /default ****" && \ echo "**** copy fail2ban default action and filter to /default ****" && \
mkdir -p /defaults/fail2ban && \ mkdir -p /defaults/fail2ban && \
mv /etc/fail2ban/action.d /defaults/fail2ban/ && \ mv /etc/fail2ban/action.d /defaults/fail2ban/ && \
mv /etc/fail2ban/filter.d /defaults/fail2ban/ && \ mv /etc/fail2ban/filter.d /defaults/fail2ban/ && \
echo "**** copy proxy confs to /default ****" && \ echo "**** copy proxy confs to /default ****" && \
mkdir -p /defaults/proxy-confs && \ mkdir -p /defaults/proxy-confs && \
curl -o \ curl -o \
/tmp/proxy.tar.gz -L \ /tmp/proxy.tar.gz -L \
"https://github.com/linuxserver/reverse-proxy-confs/tarball/master" && \ "https://github.com/linuxserver/reverse-proxy-confs/tarball/master" && \
tar xf \ tar xf \
/tmp/proxy.tar.gz -C \ /tmp/proxy.tar.gz -C \
/defaults/proxy-confs --strip-components=1 --exclude=linux*/.gitattributes --exclude=linux*/.github --exclude=linux*/.gitignore --exclude=linux*/LICENSE && \ /defaults/proxy-confs --strip-components=1 --exclude=linux*/.gitattributes --exclude=linux*/.github --exclude=linux*/.gitignore --exclude=linux*/LICENSE && \
echo "**** configure nginx ****" && \ echo "**** configure nginx ****" && \
rm -f /etc/nginx/conf.d/default.conf && \ rm -f /etc/nginx/conf.d/default.conf && \
curl -o \ curl -o \
/defaults/dhparams.pem -L \ /defaults/dhparams.pem -L \
"https://lsio.ams3.digitaloceanspaces.com/dhparams.pem" && \ "https://lsio.ams3.digitaloceanspaces.com/dhparams.pem" && \
echo "**** cleanup ****" && \ echo "**** cleanup ****" && \
apk del --purge \ apk del --purge \
build-dependencies && \ build-dependencies && \
for cleanfiles in *.pyc *.pyo; \ for cleanfiles in *.pyc *.pyo; \
do \ do \
find /usr/lib/python3.* -iname "${cleanfiles}" -exec rm -f '{}' + \ find /usr/lib/python3.* -iname "${cleanfiles}" -exec rm -f '{}' + \
; done && \ ; done && \
rm -rf \ rm -rf \
/tmp/* \ /tmp/* \
/root/.cache \ /root/.cache \
/root/.cargo /root/.cargo
# add local files # add local files
COPY root/ / COPY root/ /

View file

@ -12,148 +12,148 @@ ENV DHLEVEL=2048 ONLY_SUBDOMAINS=false AWS_CONFIG_FILE=/config/dns-conf/route53.
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2 ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2
RUN \ RUN \
echo "**** install build packages ****" && \ echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-dependencies \ apk add --no-cache --virtual=build-dependencies \
cargo \ cargo \
g++ \ g++ \
gcc \ gcc \
libffi-dev \ libffi-dev \
openssl-dev \ openssl-dev \
python3-dev && \ python3-dev && \
echo "**** install runtime packages ****" && \ echo "**** install runtime packages ****" && \
apk add --no-cache --upgrade \ apk add --no-cache --upgrade \
curl \ curl \
fail2ban \ fail2ban \
gnupg \ gnupg \
memcached \ memcached \
nginx \ nginx \
nginx-mod-http-brotli \ nginx-mod-http-brotli \
nginx-mod-http-dav-ext \ nginx-mod-http-dav-ext \
nginx-mod-http-echo \ nginx-mod-http-echo \
nginx-mod-http-fancyindex \ nginx-mod-http-fancyindex \
nginx-mod-http-geoip2 \ nginx-mod-http-geoip2 \
nginx-mod-http-headers-more \ nginx-mod-http-headers-more \
nginx-mod-http-image-filter \ nginx-mod-http-image-filter \
nginx-mod-http-nchan \ nginx-mod-http-nchan \
nginx-mod-http-perl \ nginx-mod-http-perl \
nginx-mod-http-redis2 \ nginx-mod-http-redis2 \
nginx-mod-http-set-misc \ nginx-mod-http-set-misc \
nginx-mod-http-upload-progress \ nginx-mod-http-upload-progress \
nginx-mod-http-xslt-filter \ nginx-mod-http-xslt-filter \
nginx-mod-mail \ nginx-mod-mail \
nginx-mod-rtmp \ nginx-mod-rtmp \
nginx-mod-stream \ nginx-mod-stream \
nginx-mod-stream-geoip2 \ nginx-mod-stream-geoip2 \
nginx-vim \ nginx-vim \
php7-bcmath \ php7-bcmath \
php7-bz2 \ php7-bz2 \
php7-ctype \ php7-ctype \
php7-curl \ php7-curl \
php7-dom \ php7-dom \
php7-exif \ php7-exif \
php7-ftp \ php7-ftp \
php7-gd \ php7-gd \
php7-gmp \ php7-gmp \
php7-iconv \ php7-iconv \
php7-imap \ php7-imap \
php7-intl \ php7-intl \
php7-ldap \ php7-ldap \
php7-mcrypt \ php7-mcrypt \
php7-memcached \ php7-memcached \
php7-mysqli \ php7-mysqli \
php7-mysqlnd \ php7-mysqlnd \
php7-opcache \ php7-opcache \
php7-pdo_mysql \ php7-pdo_mysql \
php7-pdo_odbc \ php7-pdo_odbc \
php7-pdo_pgsql \ php7-pdo_pgsql \
php7-pdo_sqlite \ php7-pdo_sqlite \
php7-pear \ php7-pear \
php7-pecl-apcu \ php7-pecl-apcu \
php7-pecl-mailparse \ php7-pecl-mailparse \
php7-pecl-redis \ php7-pecl-redis \
php7-pgsql \ php7-pgsql \
php7-phar \ php7-phar \
php7-posix \ php7-posix \
php7-soap \ php7-soap \
php7-sockets \ php7-sockets \
php7-sodium \ php7-sodium \
php7-sqlite3 \ php7-sqlite3 \
php7-tokenizer \ php7-tokenizer \
php7-xml \ php7-xml \
php7-xmlreader \ php7-xmlreader \
php7-xmlrpc \ php7-xmlrpc \
php7-xsl \ php7-xsl \
php7-zip \ php7-zip \
py3-cryptography \ py3-cryptography \
py3-future \ py3-future \
py3-pip \ py3-pip \
whois && \ whois && \
echo "**** install certbot plugins ****" && \ echo "**** install certbot plugins ****" && \
if [ -z ${CERTBOT_VERSION+x} ]; then \ if [ -z ${CERTBOT_VERSION+x} ]; then \
CERTBOT="certbot"; \ CERTBOT="certbot"; \
else \ else \
CERTBOT="certbot==${CERTBOT_VERSION}"; \ CERTBOT="certbot==${CERTBOT_VERSION}"; \
fi && \ fi && \
pip3 install -U \ pip3 install -U \
pip && \ pip && \
pip3 install -U \ pip3 install -U \
${CERTBOT} \ ${CERTBOT} \
certbot-dns-aliyun \ certbot-dns-aliyun \
certbot-dns-cloudflare \ certbot-dns-cloudflare \
certbot-dns-cloudxns \ certbot-dns-cloudxns \
certbot-dns-cpanel \ certbot-dns-cpanel \
certbot-dns-digitalocean \ certbot-dns-digitalocean \
certbot-dns-directadmin \ certbot-dns-directadmin \
certbot-dns-dnsimple \ certbot-dns-dnsimple \
certbot-dns-dnsmadeeasy \ certbot-dns-dnsmadeeasy \
certbot-dns-domeneshop \ certbot-dns-domeneshop \
certbot-dns-google \ certbot-dns-google \
certbot-dns-hetzner \ certbot-dns-hetzner \
certbot-dns-inwx \ certbot-dns-inwx \
certbot-dns-linode \ certbot-dns-linode \
certbot-dns-luadns \ certbot-dns-luadns \
certbot-dns-netcup \ certbot-dns-netcup \
certbot-dns-njalla \ certbot-dns-njalla \
certbot-dns-nsone \ certbot-dns-nsone \
certbot-dns-ovh \ certbot-dns-ovh \
certbot-dns-rfc2136 \ certbot-dns-rfc2136 \
certbot-dns-route53 \ certbot-dns-route53 \
certbot-dns-transip \ certbot-dns-transip \
certbot-dns-vultr \ certbot-dns-vultr \
certbot-plugin-gandi \ certbot-plugin-gandi \
cryptography \ cryptography \
requests && \ requests && \
echo "**** remove unnecessary fail2ban filters ****" && \ echo "**** remove unnecessary fail2ban filters ****" && \
rm \ rm \
/etc/fail2ban/jail.d/alpine-ssh.conf && \ /etc/fail2ban/jail.d/alpine-ssh.conf && \
echo "**** copy fail2ban default action and filter to /default ****" && \ echo "**** copy fail2ban default action and filter to /default ****" && \
mkdir -p /defaults/fail2ban && \ mkdir -p /defaults/fail2ban && \
mv /etc/fail2ban/action.d /defaults/fail2ban/ && \ mv /etc/fail2ban/action.d /defaults/fail2ban/ && \
mv /etc/fail2ban/filter.d /defaults/fail2ban/ && \ mv /etc/fail2ban/filter.d /defaults/fail2ban/ && \
echo "**** copy proxy confs to /default ****" && \ echo "**** copy proxy confs to /default ****" && \
mkdir -p /defaults/proxy-confs && \ mkdir -p /defaults/proxy-confs && \
curl -o \ curl -o \
/tmp/proxy.tar.gz -L \ /tmp/proxy.tar.gz -L \
"https://github.com/linuxserver/reverse-proxy-confs/tarball/master" && \ "https://github.com/linuxserver/reverse-proxy-confs/tarball/master" && \
tar xf \ tar xf \
/tmp/proxy.tar.gz -C \ /tmp/proxy.tar.gz -C \
/defaults/proxy-confs --strip-components=1 --exclude=linux*/.gitattributes --exclude=linux*/.github --exclude=linux*/.gitignore --exclude=linux*/LICENSE && \ /defaults/proxy-confs --strip-components=1 --exclude=linux*/.gitattributes --exclude=linux*/.github --exclude=linux*/.gitignore --exclude=linux*/LICENSE && \
echo "**** configure nginx ****" && \ echo "**** configure nginx ****" && \
rm -f /etc/nginx/conf.d/default.conf && \ rm -f /etc/nginx/conf.d/default.conf && \
curl -o \ curl -o \
/defaults/dhparams.pem -L \ /defaults/dhparams.pem -L \
"https://lsio.ams3.digitaloceanspaces.com/dhparams.pem" && \ "https://lsio.ams3.digitaloceanspaces.com/dhparams.pem" && \
echo "**** cleanup ****" && \ echo "**** cleanup ****" && \
apk del --purge \ apk del --purge \
build-dependencies && \ build-dependencies && \
for cleanfiles in *.pyc *.pyo; \ for cleanfiles in *.pyc *.pyo; \
do \ do \
find /usr/lib/python3.* -iname "${cleanfiles}" -exec rm -f '{}' + \ find /usr/lib/python3.* -iname "${cleanfiles}" -exec rm -f '{}' + \
; done && \ ; done && \
rm -rf \ rm -rf \
/tmp/* \ /tmp/* \
/root/.cache \ /root/.cache \
/root/.cargo /root/.cargo
# add local files # add local files
COPY root/ / COPY root/ /

View file

@ -12,148 +12,148 @@ ENV DHLEVEL=2048 ONLY_SUBDOMAINS=false AWS_CONFIG_FILE=/config/dns-conf/route53.
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2 ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2
RUN \ RUN \
echo "**** install build packages ****" && \ echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-dependencies \ apk add --no-cache --virtual=build-dependencies \
cargo \ cargo \
g++ \ g++ \
gcc \ gcc \
libffi-dev \ libffi-dev \
openssl-dev \ openssl-dev \
python3-dev && \ python3-dev && \
echo "**** install runtime packages ****" && \ echo "**** install runtime packages ****" && \
apk add --no-cache --upgrade \ apk add --no-cache --upgrade \
curl \ curl \
fail2ban \ fail2ban \
gnupg \ gnupg \
memcached \ memcached \
nginx \ nginx \
nginx-mod-http-brotli \ nginx-mod-http-brotli \
nginx-mod-http-dav-ext \ nginx-mod-http-dav-ext \
nginx-mod-http-echo \ nginx-mod-http-echo \
nginx-mod-http-fancyindex \ nginx-mod-http-fancyindex \
nginx-mod-http-geoip2 \ nginx-mod-http-geoip2 \
nginx-mod-http-headers-more \ nginx-mod-http-headers-more \
nginx-mod-http-image-filter \ nginx-mod-http-image-filter \
nginx-mod-http-nchan \ nginx-mod-http-nchan \
nginx-mod-http-perl \ nginx-mod-http-perl \
nginx-mod-http-redis2 \ nginx-mod-http-redis2 \
nginx-mod-http-set-misc \ nginx-mod-http-set-misc \
nginx-mod-http-upload-progress \ nginx-mod-http-upload-progress \
nginx-mod-http-xslt-filter \ nginx-mod-http-xslt-filter \
nginx-mod-mail \ nginx-mod-mail \
nginx-mod-rtmp \ nginx-mod-rtmp \
nginx-mod-stream \ nginx-mod-stream \
nginx-mod-stream-geoip2 \ nginx-mod-stream-geoip2 \
nginx-vim \ nginx-vim \
php7-bcmath \ php7-bcmath \
php7-bz2 \ php7-bz2 \
php7-ctype \ php7-ctype \
php7-curl \ php7-curl \
php7-dom \ php7-dom \
php7-exif \ php7-exif \
php7-ftp \ php7-ftp \
php7-gd \ php7-gd \
php7-gmp \ php7-gmp \
php7-iconv \ php7-iconv \
php7-imap \ php7-imap \
php7-intl \ php7-intl \
php7-ldap \ php7-ldap \
php7-mcrypt \ php7-mcrypt \
php7-memcached \ php7-memcached \
php7-mysqli \ php7-mysqli \
php7-mysqlnd \ php7-mysqlnd \
php7-opcache \ php7-opcache \
php7-pdo_mysql \ php7-pdo_mysql \
php7-pdo_odbc \ php7-pdo_odbc \
php7-pdo_pgsql \ php7-pdo_pgsql \
php7-pdo_sqlite \ php7-pdo_sqlite \
php7-pear \ php7-pear \
php7-pecl-apcu \ php7-pecl-apcu \
php7-pecl-mailparse \ php7-pecl-mailparse \
php7-pecl-redis \ php7-pecl-redis \
php7-pgsql \ php7-pgsql \
php7-phar \ php7-phar \
php7-posix \ php7-posix \
php7-soap \ php7-soap \
php7-sockets \ php7-sockets \
php7-sodium \ php7-sodium \
php7-sqlite3 \ php7-sqlite3 \
php7-tokenizer \ php7-tokenizer \
php7-xml \ php7-xml \
php7-xmlreader \ php7-xmlreader \
php7-xmlrpc \ php7-xmlrpc \
php7-xsl \ php7-xsl \
php7-zip \ php7-zip \
py3-cryptography \ py3-cryptography \
py3-future \ py3-future \
py3-pip \ py3-pip \
whois && \ whois && \
echo "**** install certbot plugins ****" && \ echo "**** install certbot plugins ****" && \
if [ -z ${CERTBOT_VERSION+x} ]; then \ if [ -z ${CERTBOT_VERSION+x} ]; then \
CERTBOT="certbot"; \ CERTBOT="certbot"; \
else \ else \
CERTBOT="certbot==${CERTBOT_VERSION}"; \ CERTBOT="certbot==${CERTBOT_VERSION}"; \
fi && \ fi && \
pip3 install -U \ pip3 install -U \
pip && \ pip && \
pip3 install -U \ pip3 install -U \
${CERTBOT} \ ${CERTBOT} \
certbot-dns-aliyun \ certbot-dns-aliyun \
certbot-dns-cloudflare \ certbot-dns-cloudflare \
certbot-dns-cloudxns \ certbot-dns-cloudxns \
certbot-dns-cpanel \ certbot-dns-cpanel \
certbot-dns-digitalocean \ certbot-dns-digitalocean \
certbot-dns-directadmin \ certbot-dns-directadmin \
certbot-dns-dnsimple \ certbot-dns-dnsimple \
certbot-dns-dnsmadeeasy \ certbot-dns-dnsmadeeasy \
certbot-dns-domeneshop \ certbot-dns-domeneshop \
certbot-dns-google \ certbot-dns-google \
certbot-dns-hetzner \ certbot-dns-hetzner \
certbot-dns-inwx \ certbot-dns-inwx \
certbot-dns-linode \ certbot-dns-linode \
certbot-dns-luadns \ certbot-dns-luadns \
certbot-dns-netcup \ certbot-dns-netcup \
certbot-dns-njalla \ certbot-dns-njalla \
certbot-dns-nsone \ certbot-dns-nsone \
certbot-dns-ovh \ certbot-dns-ovh \
certbot-dns-rfc2136 \ certbot-dns-rfc2136 \
certbot-dns-route53 \ certbot-dns-route53 \
certbot-dns-transip \ certbot-dns-transip \
certbot-dns-vultr \ certbot-dns-vultr \
certbot-plugin-gandi \ certbot-plugin-gandi \
cryptography \ cryptography \
requests && \ requests && \
echo "**** remove unnecessary fail2ban filters ****" && \ echo "**** remove unnecessary fail2ban filters ****" && \
rm \ rm \
/etc/fail2ban/jail.d/alpine-ssh.conf && \ /etc/fail2ban/jail.d/alpine-ssh.conf && \
echo "**** copy fail2ban default action and filter to /default ****" && \ echo "**** copy fail2ban default action and filter to /default ****" && \
mkdir -p /defaults/fail2ban && \ mkdir -p /defaults/fail2ban && \
mv /etc/fail2ban/action.d /defaults/fail2ban/ && \ mv /etc/fail2ban/action.d /defaults/fail2ban/ && \
mv /etc/fail2ban/filter.d /defaults/fail2ban/ && \ mv /etc/fail2ban/filter.d /defaults/fail2ban/ && \
echo "**** copy proxy confs to /default ****" && \ echo "**** copy proxy confs to /default ****" && \
mkdir -p /defaults/proxy-confs && \ mkdir -p /defaults/proxy-confs && \
curl -o \ curl -o \
/tmp/proxy.tar.gz -L \ /tmp/proxy.tar.gz -L \
"https://github.com/linuxserver/reverse-proxy-confs/tarball/master" && \ "https://github.com/linuxserver/reverse-proxy-confs/tarball/master" && \
tar xf \ tar xf \
/tmp/proxy.tar.gz -C \ /tmp/proxy.tar.gz -C \
/defaults/proxy-confs --strip-components=1 --exclude=linux*/.gitattributes --exclude=linux*/.github --exclude=linux*/.gitignore --exclude=linux*/LICENSE && \ /defaults/proxy-confs --strip-components=1 --exclude=linux*/.gitattributes --exclude=linux*/.github --exclude=linux*/.gitignore --exclude=linux*/LICENSE && \
echo "**** configure nginx ****" && \ echo "**** configure nginx ****" && \
rm -f /etc/nginx/conf.d/default.conf && \ rm -f /etc/nginx/conf.d/default.conf && \
curl -o \ curl -o \
/defaults/dhparams.pem -L \ /defaults/dhparams.pem -L \
"https://lsio.ams3.digitaloceanspaces.com/dhparams.pem" && \ "https://lsio.ams3.digitaloceanspaces.com/dhparams.pem" && \
echo "**** cleanup ****" && \ echo "**** cleanup ****" && \
apk del --purge \ apk del --purge \
build-dependencies && \ build-dependencies && \
for cleanfiles in *.pyc *.pyo; \ for cleanfiles in *.pyc *.pyo; \
do \ do \
find /usr/lib/python3.* -iname "${cleanfiles}" -exec rm -f '{}' + \ find /usr/lib/python3.* -iname "${cleanfiles}" -exec rm -f '{}' + \
; done && \ ; done && \
rm -rf \ rm -rf \
/tmp/* \ /tmp/* \
/root/.cache \ /root/.cache \
/root/.cargo /root/.cargo
# add local files # add local files
COPY root/ / COPY root/ /