Block a user
web (0b74e9ad)
Published 2026-07-07 22:37:16 +00:00 by mazyar
Installation
docker pull git.opplens.se/mazyar/web:0b74e9adsha256:b2393bc107a5b3e47880e9fa6a0057b6cdef6eda65f09b73b364d3ce959ac0f7
Image Layers
| ADD alpine-minirootfs-3.22.3-x86_64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| ENV _BASH_VERSION=5.0.18 |
| ENV _BASH_BASELINE=5.0 |
| ENV _BASH_LATEST_PATCH=18 |
| COPY alpine3.21.patch /usr/local/src/tianon-bash-patches/ # buildkit |
| RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps bison coreutils dpkg-dev dpkg gcc libc-dev make ncurses-dev patch tar ; wget -O bash.tar.gz "https://ftp.gnu.org/gnu/bash/bash-$_BASH_BASELINE.tar.gz"; wget -O bash.tar.gz.sig "https://ftp.gnu.org/gnu/bash/bash-$_BASH_BASELINE.tar.gz.sig"; : "${_BASH_BASELINE_PATCH:=0}" "${_BASH_LATEST_PATCH:=0}"; if [ "$_BASH_LATEST_PATCH" -gt "$_BASH_BASELINE_PATCH" ]; then mkdir -p bash-patches; first="$(printf '%03d' "$(( _BASH_BASELINE_PATCH + 1 ))")"; last="$(printf '%03d' "$_BASH_LATEST_PATCH")"; majorMinor="${_BASH_VERSION%.*}"; for patch in $(seq -w "$first" "$last"); do url="https://ftp.gnu.org/gnu/bash/bash-$majorMinor-patches/bash${majorMinor//./}-$patch"; wget -O "bash-patches/$patch" "$url"; wget -O "bash-patches/$patch.sig" "$url.sig"; done; fi; apk add --no-cache --virtual .gpg-deps gnupg; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 7C0135FB088AAF6C66C650B9BB5869F064EA74AB; gpg --batch --verify bash.tar.gz.sig bash.tar.gz; rm bash.tar.gz.sig; if [ -d bash-patches ]; then for sig in bash-patches/*.sig; do p="${sig%.sig}"; gpg --batch --verify "$sig" "$p"; rm "$sig"; done; fi; gpgconf --kill all; rm -rf "$GNUPGHOME"; apk del --no-network .gpg-deps; mkdir -p /usr/local/src/bash; tar --extract --file=bash.tar.gz --strip-components=1 --directory=/usr/local/src/bash ; rm bash.tar.gz; if [ -d bash-patches ]; then apk add --no-cache --virtual .patch-deps patch; for p in bash-patches/*; do patch --directory=/usr/local/src/bash --input="$(readlink -f "$p")" --strip=0 ; rm "$p"; done; rmdir bash-patches; apk del --no-network .patch-deps; fi; for p in /usr/local/src/tianon-bash-patches/*; do patch --directory=/usr/local/src/bash --input="$p" --strip=1 ; done; cd /usr/local/src/bash; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./configure --build="$gnuArch" --enable-readline --with-curses --without-bash-malloc || { cat >&2 config.log; false; }; make -j "$(nproc)"; make install; cd /; rm -r /usr/local/src/bash; rm -rf /usr/local/share/doc/bash/*.html /usr/local/share/info /usr/local/share/locale /usr/local/share/man ; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-network --virtual .bash-rundeps $runDeps; apk del --no-network .build-deps; [ "$(which bash)" = '/usr/local/bin/bash' ]; bash --version; [ "$(bash -c 'echo "${BASH_VERSION%%[^0-9.]*}"')" = "$_BASH_VERSION" ]; bash -c 'help' > /dev/null # buildkit |
| COPY docker-entrypoint.sh /usr/local/bin/ # buildkit |
| ENTRYPOINT ["docker-entrypoint.sh"] |
| CMD ["bash"] |
| RUN /bin/sh -c apk --no-cache update && apk --no-cache add --update busybox-suid && apk --no-cache add curl rsync tzdata tcpdump tree ca-certificates s-nail # buildkit |
| WORKDIR /go/bin/ |
| COPY file:886266f2512b2c40df45ea3a436176d91272311bbd40a4bad70befc0edb5d516 in . |
| COPY dir:869bdabd3fa9a20e9f1349e26b8a06b963fab41ff646202c388f366d657dc317 in . |
| COPY dir:c037c78f34fd76e4d927049c44bcfca7c436694850df5d9f4e5de603bc2345d4 in . |
| EXPOSE 8686 |
| ENTRYPOINT ["/go/bin/web"] |
| LABEL org.opencontainers.image.created=2026-07-07T22:36:58Z |
| LABEL org.opencontainers.image.revision=0b74e9ad23fe93a07f2a651e3765214400a5d27f |
| LABEL org.opencontainers.image.source=https://git.opplens.se/mazyar/tm_back.git |
| LABEL org.opencontainers.image.url=https://git.opplens.se/mazyar/tm_back |
Labels
| Key | Value |
|---|---|
| org.opencontainers.image.created | 2026-07-07T22:36:58Z |
| org.opencontainers.image.revision | 0b74e9ad23fe93a07f2a651e3765214400a5d27f |
| org.opencontainers.image.source | https://git.opplens.se/mazyar/tm_back.git |
| org.opencontainers.image.url | https://git.opplens.se/mazyar/tm_back |
Details
Versions (149)
View all