Block a user
npmplus (r1-znjan)
Published 2026-02-12 19:47:42 +01:00 by zpericic
Installation
docker pull gitea.netst.org/zpericic/npmplus:r1-znjansha256:496a94dff101f01a7acbb1d85191e1a136c0456b9cbd48755fb88b43c9ce41e6Image Layers
| ADD alpine-minirootfs-3.21.3-x86_64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| RUN /bin/sh -c set -eux; apk add --no-cache ca-certificates tzdata ; # buildkit |
| ENV GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305 |
| ENV PYTHON_VERSION=3.13.3 |
| ENV PYTHON_SHA256=40f868bcbdeb8149a3149580bb9bfd407b3321cd48f0be631af955ac92c0e041 |
| RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps gnupg tar xz bluez-dev bzip2-dev dpkg-dev dpkg findutils gcc gdbm-dev libc-dev libffi-dev libnsl-dev libtirpc-dev linux-headers make ncurses-dev openssl-dev pax-utils readline-dev sqlite-dev tcl-dev tk tk-dev util-linux-dev xz-dev zlib-dev ; wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz"; echo "$PYTHON_SHA256 *python.tar.xz" | sha256sum -c -; wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc"; GNUPGHOME="$(mktemp -d)"; export GNUPGHOME; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$GPG_KEY"; gpg --batch --verify python.tar.xz.asc python.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME" python.tar.xz.asc; mkdir -p /usr/src/python; tar --extract --directory /usr/src/python --strip-components=1 --file python.tar.xz; rm python.tar.xz; cd /usr/src/python; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./configure --build="$gnuArch" --enable-loadable-sqlite-extensions --enable-option-checking=fatal --enable-shared --with-lto --with-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000"; LDFLAGS="${LDFLAGS:--Wl},--strip-all"; arch="$(apk --print-arch)"; case "$arch" in x86_64|aarch64) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"; ;; x86) ;; *) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer"; ;; esac; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-}" ; rm python; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:--Wl},-rpath='\$\$ORIGIN/../lib'" python ; make install; cd /; rm -rf /usr/src/python; find /usr/local -depth \( \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name 'libpython*.a' \) \) \) -exec rm -rf '{}' + ; find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec scanelf --needed --nobanner --format '%n#p' '{}' ';' | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | xargs -rt apk add --no-network --virtual .python-rundeps ; apk del --no-network .build-deps; export PYTHONDONTWRITEBYTECODE=1; python3 --version; pip3 --version # buildkit |
| RUN /bin/sh -c set -eux; for src in idle3 pip3 pydoc3 python3 python3-config; do dst="$(echo "$src" | tr -d 3)"; [ -s "/usr/local/bin/$src" ]; [ ! -e "/usr/local/bin/$dst" ]; ln -svT "$src" "/usr/local/bin/$dst"; done # buildkit |
| CMD ["python3"] |
| ENV PYTHONUNBUFFERED=1 |
| SHELL [/bin/ash -eo pipefail -c] |
| COPY /usr/local/nginx /usr/local/nginx # buildkit |
| COPY /etc/ssl/openssl.cnf /etc/ssl/openssl.cnf # buildkit |
| COPY /usr/lib/ossl-modules/oqsprovider.so /usr/lib/ossl-modules/oqsprovider.so # buildkit |
| COPY /usr/local/lib/libmodsecurity.so.3 /usr/local/lib/libmodsecurity.so.3 # buildkit |
| COPY /usr/local/lib/libopentelemetry_proto.so /usr/local/lib/libopentelemetry_proto.so # buildkit |
| COPY /usr/local/lib/libosrc_shmem_ipc.so /usr/local/lib/libosrc_shmem_ipc.so # buildkit |
| COPY /usr/local/lib/libosrc_compression_utils.so /usr/local/lib/libosrc_compression_utils.so # buildkit |
| COPY /usr/local/lib/libosrc_nginx_attachment_util.so /usr/local/lib/libosrc_nginx_attachment_util.so # buildkit |
| RUN /bin/ash -eo pipefail -c apk upgrade --no-cache -a && apk add --no-cache ca-certificates tzdata tini zlib luajit pcre2 libstdc++ yajl libxml2 libxslt libcurl lmdb libfuzzy2 lua5.1-libs geoip libmaxminddb-libs libprotobuf openssl && ln -s /usr/local/nginx/sbin/nginx /usr/local/bin/nginx # buildkit |
| COPY /usr/local /usr/local # buildkit |
| ENTRYPOINT ["tini" "--" "nginx"] |
| CMD ["-g" "daemon off;"] |
| EXPOSE map[80/tcp:{}] |
| EXPOSE map[81/tcp:{}] |
| EXPOSE map[443/tcp:{}] |
| EXPOSE map[443/udp:{}] |
| SHELL [/bin/ash -eo pipefail -c] |
| ENV NODE_ENV=production |
| ARG CRS_VER=v4.14.0 |
| COPY rootfs / # buildkit |
| COPY /app /app # buildkit |
| WORKDIR /app |
| RUN |1 CRS_VER=v4.14.0 /bin/ash -eo pipefail -c apk upgrade --no-cache -a && apk add --no-cache ca-certificates tzdata tini curl util-linux-misc nodejs bash nano logrotate goaccess fcgi lua5.1-lzlib lua5.1-socket coreutils grep findutils jq shadow su-exec luarocks5.1 lua5.1-dev lua5.1-sec build-base git yarn && curl https://raw.githubusercontent.com/tomwassenberg/certbot-ocsp-fetcher/refs/heads/main/certbot-ocsp-fetcher -o /usr/local/bin/certbot-ocsp-fetcher.sh && sed -i "s|/live||g" /usr/local/bin/certbot-ocsp-fetcher.sh && chmod +x /usr/local/bin/certbot-ocsp-fetcher.sh && git clone https://github.com/coreruleset/coreruleset --branch "$CRS_VER" /tmp/coreruleset && mkdir -v /usr/local/nginx/conf/conf.d/include/coreruleset && mv -v /tmp/coreruleset/crs-setup.conf.example /usr/local/nginx/conf/conf.d/include/coreruleset/crs-setup.conf.example && mv -v /tmp/coreruleset/plugins /usr/local/nginx/conf/conf.d/include/coreruleset/plugins && mv -v /tmp/coreruleset/rules /usr/local/nginx/conf/conf.d/include/coreruleset/rules && luarocks-5.1 install lua-cjson && luarocks-5.1 install lua-resty-http && luarocks-5.1 install lua-resty-string && luarocks-5.1 install lua-resty-openssl && luarocks-5.1 install lua-resty-openidc && luarocks-5.1 install lua-resty-session && yarn global add nginxbeautifier && yarn cache clean && apk del --no-cache luarocks5.1 lua5.1-dev lua5.1-sec build-base git yarn && ln -s /app/password-reset.js /usr/local/bin/password-reset.js && ln -s /app/sqlite-vaccum.js /usr/local/bin/sqlite-vaccum.js && ln -s /app/index.js /usr/local/bin/index.js && rm -r /tmp/* # buildkit |
| COPY /app/dist /html/frontend # buildkit |
| COPY /src/crowdsec-nginx-bouncer/nginx/crowdsec_nginx.conf /usr/local/nginx/conf/conf.d/include/crowdsec_nginx.conf # buildkit |
| COPY /src/crowdsec-nginx-bouncer/lua-mod/config_example.conf /usr/local/nginx/conf/conf.d/include/crowdsec.conf # buildkit |
| COPY /src/crowdsec-nginx-bouncer/lua-mod/templates/captcha.html /usr/local/nginx/conf/conf.d/include/captcha.html # buildkit |
| COPY /src/crowdsec-nginx-bouncer/lua-mod/templates/ban.html /usr/local/nginx/conf/conf.d/include/ban.html # buildkit |
| COPY /src/crowdsec-nginx-bouncer/lua-mod/lib/crowdsec.lua /usr/local/nginx/lib/lua/crowdsec.lua # buildkit |
| COPY /src/crowdsec-nginx-bouncer/lua-mod/lib/plugins /usr/local/nginx/lib/lua/plugins # buildkit |
| ENTRYPOINT ["tini" "--" "entrypoint.sh"] |
| HEALTHCHECK &{["CMD-SHELL" "healthcheck.sh"] "0s" "0s" "0s" "0s" '\x00'} |
Details
2026-02-12 19:47:42 +01:00
Versions (2)
View all
Container
0
OCI / Docker
linux/amd64
80 MiB
r1-pojisan
2026-02-12
r1-znjan
2026-02-12