|
| 1 | +FROM lsiobase/alpine.nginx.arm64:3.8 |
| 2 | + |
| 3 | +# Add qemu to build on x86_64 systems |
| 4 | +COPY qemu-aarch64-static /usr/bin |
| 5 | + |
| 6 | +# set version label |
| 7 | +ARG BUILD_DATE |
| 8 | +ARG VERSION |
| 9 | +LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}" |
| 10 | +LABEL maintainer="aptalca" |
| 11 | + |
| 12 | +# environment settings |
| 13 | +ENV DHLEVEL=2048 ONLY_SUBDOMAINS=false AWS_CONFIG_FILE=/config/dns-conf/route53.ini |
| 14 | +ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2 |
| 15 | + |
| 16 | +RUN \ |
| 17 | + echo "**** install runtime packages ****" && \ |
| 18 | + apk add --no-cache --upgrade \ |
| 19 | + certbot \ |
| 20 | + curl \ |
| 21 | + fail2ban \ |
| 22 | + memcached \ |
| 23 | + nginx \ |
| 24 | + nginx-mod-http-echo \ |
| 25 | + nginx-mod-http-fancyindex \ |
| 26 | + nginx-mod-http-geoip \ |
| 27 | + nginx-mod-http-headers-more \ |
| 28 | + nginx-mod-http-image-filter \ |
| 29 | + nginx-mod-http-lua \ |
| 30 | + nginx-mod-http-lua-upstream \ |
| 31 | + nginx-mod-http-nchan \ |
| 32 | + nginx-mod-http-perl \ |
| 33 | + nginx-mod-http-redis2 \ |
| 34 | + nginx-mod-http-set-misc \ |
| 35 | + nginx-mod-http-upload-progress \ |
| 36 | + nginx-mod-http-xslt-filter \ |
| 37 | + nginx-mod-mail \ |
| 38 | + nginx-mod-rtmp \ |
| 39 | + nginx-mod-stream \ |
| 40 | + nginx-mod-stream-geoip \ |
| 41 | + nginx-vim \ |
| 42 | + php7-bz2 \ |
| 43 | + php7-ctype \ |
| 44 | + php7-curl \ |
| 45 | + php7-dom \ |
| 46 | + php7-exif \ |
| 47 | + php7-gd \ |
| 48 | + php7-iconv \ |
| 49 | + php7-mcrypt \ |
| 50 | + php7-memcached \ |
| 51 | + php7-mysqli \ |
| 52 | + php7-mysqlnd \ |
| 53 | + php7-opcache \ |
| 54 | + php7-pdo_mysql \ |
| 55 | + php7-pdo_pgsql \ |
| 56 | + php7-pdo_sqlite \ |
| 57 | + php7-pgsql \ |
| 58 | + php7-phar \ |
| 59 | + php7-soap \ |
| 60 | + php7-sockets \ |
| 61 | + php7-sqlite3 \ |
| 62 | + php7-tokenizer \ |
| 63 | + php7-xml \ |
| 64 | + php7-xmlreader \ |
| 65 | + php7-zip \ |
| 66 | + py2-future \ |
| 67 | + py2-pip && \ |
| 68 | + echo "**** install certbot plugins ****" && \ |
| 69 | + pip install -U --no-cache-dir \ |
| 70 | + pip && \ |
| 71 | + pip install -U --no-cache-dir \ |
| 72 | + certbot \ |
| 73 | + certbot-dns-cloudflare \ |
| 74 | + certbot-dns-cloudxns \ |
| 75 | + certbot-dns-digitalocean \ |
| 76 | + certbot-dns-dnsimple \ |
| 77 | + certbot-dns-dnsmadeeasy \ |
| 78 | + certbot-dns-google \ |
| 79 | + certbot-dns-luadns \ |
| 80 | + certbot-dns-nsone \ |
| 81 | + certbot-dns-ovh \ |
| 82 | + certbot-dns-rfc2136 \ |
| 83 | + certbot-dns-route53 \ |
| 84 | + requests && \ |
| 85 | + echo "**** remove unnecessary fail2ban filters ****" && \ |
| 86 | + rm \ |
| 87 | + /etc/fail2ban/jail.d/alpine-ssh.conf && \ |
| 88 | + echo "**** copy fail2ban default action and filter to /default ****" && \ |
| 89 | + mkdir -p /defaults/fail2ban && \ |
| 90 | + mv /etc/fail2ban/action.d /defaults/fail2ban/ && \ |
| 91 | + mv /etc/fail2ban/filter.d /defaults/fail2ban/ && \ |
| 92 | + echo "**** copy proxy confs to /default ****" && \ |
| 93 | + mkdir -p /defaults/proxy-confs && \ |
| 94 | + curl -o \ |
| 95 | + /tmp/proxy.tar.gz -L \ |
| 96 | + "https://github.com/linuxserver/reverse-proxy-confs/tarball/master" && \ |
| 97 | + tar xf \ |
| 98 | + /tmp/proxy.tar.gz -C \ |
| 99 | + /defaults/proxy-confs --strip-components=1 --exclude=linux*/.gitattributes --exclude=linux*/.github && \ |
| 100 | + echo "**** cleanup ****" && \ |
| 101 | + rm -rf \ |
| 102 | + /tmp/* |
| 103 | + |
| 104 | +# add local files |
| 105 | +COPY root/ / |
0 commit comments