ADD file:32ff5e7a78b890996ee4681cc0a26185d3e9acdb4eb1e2aaccb2411f922fed6b in / |
CMD ["/bin/sh"] |
ARG ARCH= |
ENV ARCH=amd64 |
ENV DOCKER_IMAGE=fabiocicerchia/nginx-lua |
ENV DOCKER_IMAGE_OS= |
ENV DOCKER_IMAGE_TAG= |
ARG BUILD_DATE |
ENV BUILD_DATE=2023-08-30T00:00:00Z |
ARG VCS_REF |
ENV VCS_REF=ad59b54 |
ARG VER_NGINX=1.25.2 |
ENV VER_NGINX=1.25.2 |
ARG VER_NGX_DEVEL_KIT=0.3.2 |
ENV VER_NGX_DEVEL_KIT=0.3.2 |
ARG VER_NJS=0.8.0 |
ENV VER_NJS=0.8.0 |
ARG VER_GEOIP=3.4 |
ENV VER_GEOIP=3.4 |
ARG VER_LUAJIT=2.1-20230410 |
ENV VER_LUAJIT=2.1-20230410 |
ARG LUAJIT_LIB=/usr/local/lib |
ENV LUAJIT_LIB=/usr/local/lib |
ARG LUAJIT_INC=/usr/local/include/luajit-2.1 |
ENV LUAJIT_INC=/usr/local/include/luajit-2.1 |
ARG LD_LIBRARY_PATH=/usr/local/lib/: |
ENV LD_LIBRARY_PATH=/usr/local/lib/: |
ARG VER_LUA_NGINX_MODULE=0.10.25 |
ENV VER_LUA_NGINX_MODULE=0.10.25 |
ARG VER_LUA_RESTY_CORE=0.1.27 |
ENV VER_LUA_RESTY_CORE=0.1.27 |
ARG LUA_LIB_DIR=/usr/local/share/lua/5.1 |
ENV LUA_LIB_DIR=/usr/local/share/lua/5.1 |
ARG VER_LUAROCKS=3.9.2 |
ENV VER_LUAROCKS=3.9.2 |
ARG VER_OPENRESTY_HEADERS=0.34 |
ENV VER_OPENRESTY_HEADERS=0.34 |
ARG VER_CLOUDFLARE_COOKIE=f418d77082eaef48331302e84330488fdc810ef4 |
ENV VER_CLOUDFLARE_COOKIE=f418d77082eaef48331302e84330488fdc810ef4 |
ARG VER_OPENRESTY_DNS=0.22 |
ENV VER_OPENRESTY_DNS=0.22 |
ARG VER_LUA_RESTY_LRUCACHE=0.13 |
ENV VER_LUA_RESTY_LRUCACHE=0.13 |
ARG VER_OPENRESTY_MEMCACHED=0.17 |
ENV VER_OPENRESTY_MEMCACHED=0.17 |
ARG VER_OPENRESTY_MYSQL=0.26 |
ENV VER_OPENRESTY_MYSQL=0.26 |
ARG VER_OPENRESTY_REDIS=0.30 |
ENV VER_OPENRESTY_REDIS=0.30 |
ARG VER_OPENRESTY_SHELL=0.03 |
ENV VER_OPENRESTY_SHELL=0.03 |
ARG VER_OPENRESTY_SIGNAL=0.03 |
ENV VER_OPENRESTY_SIGNAL=0.03 |
ARG VER_OPENRESTY_HEALTHCHECK=0.08 |
ENV VER_OPENRESTY_HEALTHCHECK=0.08 |
ARG VER_OPENRESTY_WEBSOCKET=0.10 |
ENV VER_OPENRESTY_WEBSOCKET=0.10 |
ARG VER_OPENRESTY_TABLEPOOL=0.02 |
ENV VER_OPENRESTY_TABLEPOOL=0.02 |
ARG VER_LUA_UPSTREAM=0.07 |
ENV VER_LUA_UPSTREAM=0.07 |
ARG VER_PROMETHEUS=0.20230607 |
ENV VER_PROMETHEUS=0.20230607 |
ARG VER_MISC_NGINX=0.33 |
ENV VER_MISC_NGINX=0.33 |
ARG VER_OPENRESTY_STREAMLUA=0.0.13 |
ENV VER_OPENRESTY_STREAMLUA=0.0.13 |
ENV NGINX_VERSION=1.25.2 |
ENV NJS_VERSION=0.8.0 |
ENV PKG_RELEASE=1~ |
ARG NGX_CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC |
ENV NGX_CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC |
ARG NGX_LDOPT=-Wl,-rpath,/usr/local/lib -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie |
ENV NGX_LDOPT=-Wl,-rpath,/usr/local/lib -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie |
ARG NGINX_BUILD_CONFIG= --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --with-perl_modules_path=/usr/lib/perl5/vendor_perl --user=nginx --group=nginx `# OFFICIAL MODULES` --with-compat --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module `# CUSTOM MODULES` --add-module=/headers-more-nginx-module-0.34 --add-module=/lua-nginx-module-0.10.25 --add-module=/lua-upstream-nginx-module-0.07 --add-module=/ngx_devel_kit-0.3.2 --add-module=/ngx_http_geoip2_module-3.4 --add-module=/njs-0.8.0/nginx --add-module=/set-misc-nginx-module-0.33 --add-module=/stream-lua-nginx-module-0.0.13 |
ENV NGINX_BUILD_CONFIG= --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --with-perl_modules_path=/usr/lib/perl5/vendor_perl --user=nginx --group=nginx `# OFFICIAL MODULES` --with-compat --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module `# CUSTOM MODULES` --add-module=/headers-more-nginx-module-0.34 --add-module=/lua-nginx-module-0.10.25 --add-module=/lua-upstream-nginx-module-0.07 --add-module=/ngx_devel_kit-0.3.2 --add-module=/ngx_http_geoip2_module-3.4 --add-module=/njs-0.8.0/nginx --add-module=/set-misc-nginx-module-0.33 --add-module=/stream-lua-nginx-module-0.0.13 |
ARG BUILD_DEPS_BASE= curl gzip libmaxminddb-dev make openssl-dev patch pcre-dev tar zlib-dev |
ENV BUILD_DEPS_BASE= curl gzip libmaxminddb-dev make openssl-dev patch pcre-dev tar zlib-dev |
ARG BUILD_DEPS_AMD64= curl gzip libmaxminddb-dev make openssl-dev patch pcre-dev tar zlib-dev g++ |
ENV BUILD_DEPS_AMD64= curl gzip libmaxminddb-dev make openssl-dev patch pcre-dev tar zlib-dev g++ |
ARG BUILD_DEPS_ARM64V8= curl gzip libmaxminddb-dev make openssl-dev patch pcre-dev tar zlib-dev gcc-aarch64-none-elf |
ENV BUILD_DEPS_ARM64V8= curl gzip libmaxminddb-dev make openssl-dev patch pcre-dev tar zlib-dev gcc-aarch64-none-elf |
ENV BUILD_DEPS= |
ARG NGINX_BUILD_DEPS= alpine-sdk bash findutils gcc libc-dev libxml2-dev libxslt-dev linux-headers make openssl-dev pcre-dev zlib-dev git |
ENV NGINX_BUILD_DEPS= alpine-sdk bash findutils gcc libc-dev libxml2-dev libxslt-dev linux-headers make openssl-dev pcre-dev zlib-dev git |
LABEL maintainer=Fabio Cicerchia <info@fabiocicerchia.it> org.label-schema.build-date=2023-08-30T00:00:00Z org.label-schema.description=Nginx 1.25.2 with Lua support based on alpine (amd64) 3.18.3. org.label-schema.docker.cmd=docker run -p 80:80 -d fabiocicerchia/nginx-lua:1.25.2-alpine3.18.3 org.label-schema.name=fabiocicerchia/nginx-lua org.label-schema.schema-version=1.0 org.label-schema.url=https://github.com/fabiocicerchia/nginx-lua org.label-schema.vcs-ref=ad59b54 org.label-schema.vcs-url=https://github.com/fabiocicerchia/nginx-lua org.label-schema.version=1.25.2-alpine3.18.3 image.target.platform= image.target.os= image.target.arch=amd64 versions.os=3.18.3 versions.luajit2=2.1-20230410 versions.luarocks=3.9.2 versions.nginx=1.25.2 versions.ngx_devel_kit=0.3.2 versions.njs=0.8.0 versions.geoip=3.4 versions.headers-more-nginx-module=0.34 versions.lua-nginx-module=0.10.25 versions.lua-resty-cookie=f418d77082eaef48331302e84330488fdc810ef4 versions.lua-resty-core=0.1.27 versions.lua-resty-dns=0.22 versions.lua-resty-lrucache=0.13 versions.lua-resty-memcached=0.17 versions.lua-resty-mysql=0.26 versions.lua-resty-redis=0.30 versions.lua-resty-shell=0.03 versions.lua-resty-signal=0.03 versions.lua-resty-tablepool=0.02 versions.lua-resty-upstream-healthcheck=0.08 versions.lua-resty-websocket=0.10 versions.lua-upstream=0.07 versions.nginx-lua-prometheus=0.20230607 versions.set-misc-nginx=0.33 versions.stream-lua-nginx-module=0.0.13 |
ARG PKG_DEPS= curl libmaxminddb-dev libxml2-dev openssl-dev pcre-dev unzip wget zlib-dev |
ENV PKG_DEPS= curl libmaxminddb-dev libxml2-dev openssl-dev pcre-dev unzip wget zlib-dev |
COPY --chown=101:101dir:aa7705959d307327ea886ec9960f7450482a8e0ec35cd4df00dd0fa85c7b21c0 in /etc/nginx |
COPY --chown=101:101dir:06cfe8f0a19fcd4db1a975e6a7dc98f17def9ce299ad9f3c6e2819b1139f787b in /usr/local/lib |
COPY --chown=101:101dir:a2232b0f9b70181916f36d78dec282ad5d1a3e104b986768c7301ce607a6df47 in /usr/local/share/lua |
COPY --chown=101:101file:21a9712c7740d240d7e941680f54a583aeadac162ccbf6d2868dbe759ca6e174 in /usr/sbin/nginx |
COPY --chown=101:101file:2f074e761f8f53a39e7bb6e4e2af8a0996f112d4a4af1ac244aaf3f15eef435b in /usr/sbin/nginx-debug |
COPY --chown=101:101dir:da0e27f66ef09d3eabf34d22ba871e3313a2ea4ed1f59d27e3a3674e5e4ffa03 in /var/cache/nginx |
COPY --chown=101:101multi:aff632212bb3035562f119089c4c22ef78361a1047d855a848e3da8dd74a8466 in /usr/local/lib/ |
COPY --chown=101:101file:8868a89b3d2456c3c60eb06fcd56cf5c4104c0167c3297b6e7bd982cd2d2d2dc in /usr/local/lib/pkgconfig/ |
COPY --chown=101:101dir:03c9645b6d25e3e207a807c3e5c38e1607aa467865354ba609e06769863c94e2 in /usr/local/include/luajit-2.1 |
COPY --chown=101:101multi:0b687a72263e868c2fef1d06c5e4c7f2fc95f7f265c9cb169d205314dda890c8 in /usr/local/bin/ |
COPY --chown=101:101dir:22706452a9a16601c0166c2683ef4f94258a2be965c4a3b8c261cb9388be4e45 in /usr/local/share/ |
COPY --chown=101:101file:a75fa8c23318ad49b9992282c14f537bb6158b8a23e61d0eace9ce096ff4bf41 in /usr/local/share/man/man1/ |
COPY --chown=101:101dir:cdf2d8d23ec37b72a24b5062d5b35bccb44aa662cb24da6ec258f6573acd116a in /usr/local/share/lua/5.1/luarocks |
COPY --chown=101:101multi:f69307859b39268608b218f1b997ec1fac88faf2579adebd42eb02709ec8e3d9 in /usr/local/bin/ |
COPY --chown=101:101dir:911a34ce7acc70a82a15d862826c7f4c601555a8a6b24605530a192b3554118d in /usr/local/etc/luarocks |
COPY --chown=101:101multi:e0435ceebcd223f7124d09950974e383f261e4bf2c699a95a26831de984f921d in /docker-entrypoint.d/ |
COPY --chown=101:101file:558a131e5873f47dd35d1434fe0a764c72cb6d583a19053b09d979d20db6fcf5 in /etc/nginx/conf.d/default.conf |
COPY --chown=101:101file:983d1a702d11ff317f495274cbbcc33f7267780485c5a98e2c53327c0591ef0c in / |
COPY --chown=101:101file:65e5624c77d092f8156f170742fb422ea7d30db5ff4c728fda3a4f2ce9ae94f9 in /etc/nginx/nginx.conf |
COPY --chown=101:101file:8e7d8da899c2810f9aa828d3fc24a9dbdf755259c7884433992c7df252ecab2b in / |
SHELL [/bin/ash -eo pipefail -c] |
/bin/ash -eo pipefail -c set -eux && apk update && apk add --no-cache --virtual .pkg_deps $PKG_DEPS && mkdir -p /var/log/nginx && ln -sf /usr/local/bin/luajit /usr/local/bin/lua |
/bin/ash -eo pipefail -c set -x && addgroup -g 101 -S nginx && adduser -S -D -H -u 101 -h /var/cache/nginx -s /sbin/nologin -G nginx -g nginx nginx && apk add --no-cache --virtual .gettext gettext && mv /usr/bin/envsubst /tmp/ && runDeps="$( scanelf --needed --nobanner /tmp/envsubst | awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' | sort -u | xargs -r apk info --installed | sort -u )" && apk add --no-cache $runDeps && apk del .gettext && mv /tmp/envsubst /usr/local/bin/ && apk add --no-cache tzdata && ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log |
/bin/ash -eo pipefail -c apk upgrade |
/bin/ash -eo pipefail -c envsubst -V && nginx -V && nginx -t && luajit -v && lua -v && luarocks --version |
EXPOSE 443 80 |
HEALTHCHECK &{["CMD-SHELL" "curl --fail http://localhost/ || exit 1"] "30s" "3s" "0s" '\x00'} |
STOPSIGNAL SIGQUIT |
ENTRYPOINT ["/docker-entrypoint.sh"] |
CMD ["nginx" "-g" "daemon off;"] |
/bin/ash -eo pipefail -c apk add --no-cache iproute2 iputils bash |
ENV NGINX_PROXY_SOURCE_PORT=Please configure NGINX_PROXY_SOURCE_PORT env! |
ENV NGINX_PROXY_SOURCE_ADDRESS=Please configure NGINX_PROXY_SOURCE_ADDRESS env! |
COPY file:771611f1de0577dbb805d783d6574c6a22fb26436bbd2d4d6349b97125b1766e in /etc/nginx/nginx.conf |
COPY file:3e30d220add51587fdc8d0a6cb837d50a35a34f61af0ff3525d5707a4cb3d94b in /usr/local/bin/docker-entrypoint.sh |
/bin/ash -eo pipefail -c chmod +x /usr/local/bin/docker-entrypoint.sh |
ENTRYPOINT ["docker-entrypoint.sh"] |
CMD ["app"] |