FROM lsiobase/nginx:3.11 # set version label ARG BUILD_DATE ARG VERSION LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}" LABEL maintainer="aptalca" # environment settings ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2 # install packages RUN \ apk add --no-cache --upgrade \ curl \ memcached \ nginx \ nginx-mod-http-echo \ nginx-mod-http-fancyindex \ nginx-mod-http-geoip \ nginx-mod-http-geoip2 \ nginx-mod-http-headers-more \ nginx-mod-http-image-filter \ nginx-mod-http-lua \ nginx-mod-http-lua-upstream \ nginx-mod-http-nchan \ nginx-mod-http-perl \ nginx-mod-http-redis2 \ nginx-mod-http-set-misc \ nginx-mod-http-upload-progress \ nginx-mod-http-xslt-filter \ nginx-mod-mail \ nginx-mod-rtmp \ nginx-mod-stream \ nginx-mod-stream-geoip \ nginx-mod-stream-geoip2 \ nginx-vim \ php7-bcmath \ php7-bz2 \ php7-ctype \ php7-curl \ php7-dom \ php7-exif \ php7-ftp \ php7-gd \ php7-iconv \ php7-imap \ php7-intl \ php7-ldap \ php7-mcrypt \ php7-memcached \ php7-mysqli \ php7-mysqlnd \ php7-opcache \ php7-pdo_mysql \ php7-pdo_odbc \ php7-pdo_pgsql \ php7-pdo_sqlite \ php7-pear \ php7-pecl-apcu \ php7-pecl-imagick \ php7-pecl-redis \ php7-pgsql \ php7-phar \ php7-posix \ php7-soap \ php7-sockets \ php7-sqlite3 \ php7-tokenizer \ php7-xml \ php7-xmlreader \ php7-xmlrpc \ php7-zip && \ echo "**** configure nginx ****" && \ rm -f /etc/nginx/conf.d/default.conf && \ sed -i \ 's|include /config/nginx/site-confs/\*;|include /config/nginx/site-confs/\*;\n\tlua_load_resty_core off;|g' \ /defaults/nginx.conf # add local files COPY root/ /