2023-09-04 03:22:19 UTC
576 MB
A035C8C19219BA821ECEA86B64E628F8D684696D
HOME/nt
LANGC.UTF-8
NASTOOL_AUTO_UPDATEfalse
NASTOOL_CN_UPDATEtrue
NASTOOL_CONFIG/config/config.yaml
NASTOOL_VERSIONmaster
PATH/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/chromium:/command
PGID0
PUID0
PYPI_MIRRORhttps://pypi.tuna.tsinghua.edu.cn/simple
PYTHON_GET_PIP_SHA25696461deced5c2a487ddc65207ec5a9cffeca0d34e7af7ea1afc470ff0d746207
PYTHON_GET_PIP_URLhttps://github.com/pypa/get-pip/raw/0d8570dc44796f4369b652222cf176b3db6ac70e/public/get-pip.py
PYTHON_PIP_VERSION23.0.1
PYTHON_SETUPTOOLS_VERSION65.5.1
PYTHON_VERSION3.10.11
REPO_URLhttps://github.com/hsuyelin/nas-tools.git
S6_CMD_WAIT_FOR_SERVICES_MAXTIME0
S6_KILL_GRACETIME60000
S6_SERVICES_GRACETIME30000
S6_SYNC_DISKS1
TERMxterm
TZAsia/Shanghai
UMASK000
WORKDIR/nas-tools
[#000] sha256:f03b40093957615593f2ed142961afb6b540507e0b47e3f7626ba5e02efbbbf1 - 5.2% (29.9 MB)
[#001] sha256:05c2151a829c7c573d1d540463c8928df99235dca88fba7ae468657f3a0dda73 - 0.18% (1.03 MB)
[#002] sha256:94970648c551e670b333e7622ae39088f0d1d365c59a18ea40666d0a75d13a53 - 1.91% (11 MB)
[#003] sha256:cf2e0f30894fffd895f2e7a379c9062bc109e99fd015273b1b805329ca366029 - 0.0% (243 Bytes)
[#004] sha256:661be8ca6397d70bda71ffb50ca0278a4121e9276a279b922c929391ab1eeb8d - 0.56% (3.22 MB)
[#005] sha256:d537f36f7bcc32bfa5bbdd2ce1bbfb49ee96f72d028fc3d5eaf7db6c9df0fc8d - 0.37% (2.12 MB)
[#006] sha256:ed4f8ada7dda1040ef93aab88b32763a86106409aa4e5e9ac4a426ebb166a07e - 89.03% (513 MB)
[#007] sha256:57b9c8f6099d5b8dc96646debc7e6e5fbacf3400360578a959bb1c997a62e906 - 0.0% (99 Bytes)
[#008] sha256:1a19072f17c469575a04786c66a1dfc46cc7a01ca89814cd8ee78f1a33a172b6 - 2.75% (15.8 MB)
[#009] sha256:a11b5a28911d3660721f1d4f9830d718046657e638ee4914428c0f0dffa5c8cc - 0.0% (2.92 KB)
/bin/sh -c #(nop) ADD file:88252a7f118b4d6f55dd5baf49dbcaa053c9d6172c652963c1151fa76f625e44 in /
2023-05-23 01:20:14 UTC/bin/sh -c #(nop) CMD ["bash"]
2023-05-23 01:20:14 UTC (buildkit.dockerfile.v0)ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2023-05-23 01:20:14 UTC (buildkit.dockerfile.v0)ENV LANG=C.UTF-8
2023-05-23 01:20:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates netbase tzdata ; rm -rf /var/lib/apt/lists/* # buildkit
2023-05-23 01:20:14 UTC (buildkit.dockerfile.v0)ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
2023-05-23 01:20:14 UTC (buildkit.dockerfile.v0)ENV PYTHON_VERSION=3.10.11
2023-05-23 01:20:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends dpkg-dev gcc gnupg libbluetooth-dev libbz2-dev libc6-dev libdb-dev libexpat1-dev libffi-dev libgdbm-dev liblzma-dev libncursesw5-dev libreadline-dev libsqlite3-dev libssl-dev make tk-dev uuid-dev wget xz-utils zlib1g-dev ; wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz"; 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-optimizations --enable-option-checking=fatal --enable-shared --with-lto --with-system-expat --without-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="$(dpkg-buildflags --get CFLAGS)"; LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"; LDFLAGS="${LDFLAGS:--Wl},--strip-all"; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-}" "PROFILE_TASK=${PROFILE_TASK:-}" ; rm python; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:--Wl},-rpath='\$\$ORIGIN/../lib'" "PROFILE_TASK=${PROFILE_TASK:-}" 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 '{}' + ; ldconfig; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec ldd '{}' ';' | awk '/=>/ { print $(NF-1) }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*; python3 --version # buildkit
2023-05-23 01:20:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; for src in idle3 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
2023-05-23 01:20:14 UTC (buildkit.dockerfile.v0)ENV PYTHON_PIP_VERSION=23.0.1
2023-05-23 01:20:14 UTC (buildkit.dockerfile.v0)ENV PYTHON_SETUPTOOLS_VERSION=65.5.1
2023-05-23 01:20:14 UTC (buildkit.dockerfile.v0)ENV PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/0d8570dc44796f4369b652222cf176b3db6ac70e/public/get-pip.py
2023-05-23 01:20:14 UTC (buildkit.dockerfile.v0)ENV PYTHON_GET_PIP_SHA256=96461deced5c2a487ddc65207ec5a9cffeca0d34e7af7ea1afc470ff0d746207
2023-05-23 01:20:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends wget; wget -O get-pip.py "$PYTHON_GET_PIP_URL"; echo "$PYTHON_GET_PIP_SHA256 *get-pip.py" | sha256sum -c -; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*; export PYTHONDONTWRITEBYTECODE=1; python get-pip.py --disable-pip-version-check --no-cache-dir --no-compile "pip==$PYTHON_PIP_VERSION" "setuptools==$PYTHON_SETUPTOOLS_VERSION" ; rm -f get-pip.py; pip --version # buildkit
2023-05-23 01:20:14 UTC (buildkit.dockerfile.v0)CMD ["python3"]
2023-09-04 03:19:55 UTC (buildkit.dockerfile.v0)COPY / / # buildkit
2023-09-04 03:22:17 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -xe && export DEBIAN_FRONTEND="noninteractive" && apt-get update -y && apt-get install -y wget bash && apt-get install -y $(echo $(wget --no-check-certificate -qO- https://raw.githubusercontent.com/hsuyelin/nas-tools/master/package_list_debian.txt)) && ln -sf /command/with-contenv /usr/bin/with-contenv && ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime && echo "${TZ}" > /etc/timezone && locale-gen zh_CN.UTF-8 && ln -sf /usr/bin/chromedriver /usr/lib/chromium/chromedriver && update-alternatives --install /usr/bin/python python /usr/local/bin/python3.10 3 && update-alternatives --install /usr/bin/python python /usr/bin/python3.9 2 && update-alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3.10 3 && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 2 && curl https://rclone.org/install.sh | bash && if [ "$(uname -m)" = "x86_64" ]; then ARCH=amd64; elif [ "$(uname -m)" = "aarch64" ]; then ARCH=arm64; fi && curl https://dl.min.io/client/mc/release/linux-${ARCH}/mc --create-dirs -o /usr/bin/mc && chmod +x /usr/bin/mc && apt-get install -y build-essential && pip install --upgrade pip setuptools wheel && pip install cython && pip install -r https://raw.githubusercontent.com/hsuyelin/nas-tools/master/requirements.txt && apt-get remove -y build-essential && apt-get autoremove -y && apt-get clean -y && rm -rf /tmp/* /root/.cache /var/lib/apt/lists/* /var/tmp/* # buildkit
2023-09-04 03:22:17 UTC (buildkit.dockerfile.v0)ENV S6_SERVICES_GRACETIME=30000 S6_KILL_GRACETIME=60000 S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 S6_SYNC_DISKS=1 HOME=/nt TERM=xterm PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/chromium:/command TZ=Asia/Shanghai NASTOOL_CONFIG=/config/config.yaml NASTOOL_AUTO_UPDATE=false NASTOOL_CN_UPDATE=true NASTOOL_VERSION=master REPO_URL=https://github.com/hsuyelin/nas-tools.git PYPI_MIRROR=https://pypi.tuna.tsinghua.edu.cn/simple PUID=0 PGID=0 UMASK=000 WORKDIR=/nas-tools
2023-09-04 03:22:17 UTC (buildkit.dockerfile.v0)WORKDIR /nas-tools
2023-09-04 03:22:19 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -xe && mkdir ${HOME} && groupadd -r nt -g 911 && useradd -r nt -g nt -d ${HOME} -s /bin/bash -u 911 && python_ver=$(python3 -V | awk '{print $2}') && echo "${WORKDIR}/" > /usr/local/lib/python${python_ver%.*}/site-packages/nas-tools.pth && echo 'fs.inotify.max_user_watches=5242880' >> /etc/sysctl.conf && echo 'fs.inotify.max_user_instances=5242880' >> /etc/sysctl.conf && echo "nt ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && git config --global pull.ff only && git clone -b master ${REPO_URL} ${WORKDIR} --depth=1 --recurse-submodule && git config --global --add safe.directory ${WORKDIR} # buildkit
2023-09-04 03:22:19 UTC (buildkit.dockerfile.v0)COPY ./rootfs / # buildkit
2023-09-04 03:22:19 UTC (buildkit.dockerfile.v0)EXPOSE map[3000/tcp:{}]
2023-09-04 03:22:19 UTC (buildkit.dockerfile.v0)VOLUME [/config]
2023-09-04 03:22:19 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["/init"]
2023-09-04 03:36:30 UTC
544 MB
A035C8C19219BA821ECEA86B64E628F8D684696D
HOME/nt
LANGC.UTF-8
NASTOOL_AUTO_UPDATEfalse
NASTOOL_CN_UPDATEtrue
NASTOOL_CONFIG/config/config.yaml
NASTOOL_VERSIONmaster
PATH/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/chromium:/command
PGID0
PUID0
PYPI_MIRRORhttps://pypi.tuna.tsinghua.edu.cn/simple
PYTHON_GET_PIP_SHA25696461deced5c2a487ddc65207ec5a9cffeca0d34e7af7ea1afc470ff0d746207
PYTHON_GET_PIP_URLhttps://github.com/pypa/get-pip/raw/0d8570dc44796f4369b652222cf176b3db6ac70e/public/get-pip.py
PYTHON_PIP_VERSION23.0.1
PYTHON_SETUPTOOLS_VERSION65.5.1
PYTHON_VERSION3.10.11
REPO_URLhttps://github.com/hsuyelin/nas-tools.git
S6_CMD_WAIT_FOR_SERVICES_MAXTIME0
S6_KILL_GRACETIME60000
S6_SERVICES_GRACETIME30000
S6_SYNC_DISKS1
TERMxterm
TZAsia/Shanghai
UMASK000
WORKDIR/nas-tools
[#000] sha256:d981f2c20c93e1c57a46cd87bc5b9a554be5323072a0d0ab4b354aabd237bbcf - 5.27% (28.7 MB)
[#001] sha256:1cf577bcf494786a26d3775b1391886625ebb198fec15f51d00f89876e606094 - 0.19% (1.02 MB)
[#002] sha256:7d227b6d918253af81c2ce70c7988a29dfe0901caa0372efd779b33cb2df2e74 - 2.03% (11.1 MB)
[#003] sha256:4433e51b3e1e563e9e119b422c4c72ad6cce87aa48c30fb09951e962a6afc422 - 0.0% (245 Bytes)
[#004] sha256:934009ab126a12a7e3d92bfbea72e5b2285b73f0c86d0cac97838dc5f36521d0 - 0.59% (3.22 MB)
[#005] sha256:2b9c0a38c705c3891b2d80042b87f72e907c061c7b524768cc6966e31b56f316 - 0.57% (3.1 MB)
[#006] sha256:6b50c622d1fb07cbbb7250b5ef72bfed6e120d883653be21eee47c9294b66d5f - 88.44% (481 MB)
[#007] sha256:32d14597d609ea3ebe7bde95a8d154df61a0abb5a4cd214089e622e093ec0ee2 - 0.0% (99 Bytes)
[#008] sha256:55d54576451d2bbd286b2e50432e31352a514e572301ba102c8a4496264a5734 - 2.91% (15.8 MB)
[#009] sha256:a11b5a28911d3660721f1d4f9830d718046657e638ee4914428c0f0dffa5c8cc - 0.0% (2.92 KB)
/bin/sh -c #(nop) ADD file:0fee550e337f1bd111a7ef785a9553674f25649f37deffa4aa8107ef6445d259 in /
2023-05-23 00:43:15 UTC/bin/sh -c #(nop) CMD ["bash"]
2023-05-23 00:43:15 UTC (buildkit.dockerfile.v0)ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2023-05-23 00:43:15 UTC (buildkit.dockerfile.v0)ENV LANG=C.UTF-8
2023-05-23 00:43:15 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates netbase tzdata ; rm -rf /var/lib/apt/lists/* # buildkit
2023-05-23 00:43:15 UTC (buildkit.dockerfile.v0)ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
2023-05-23 00:43:15 UTC (buildkit.dockerfile.v0)ENV PYTHON_VERSION=3.10.11
2023-05-23 00:43:15 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends dpkg-dev gcc gnupg libbluetooth-dev libbz2-dev libc6-dev libdb-dev libexpat1-dev libffi-dev libgdbm-dev liblzma-dev libncursesw5-dev libreadline-dev libsqlite3-dev libssl-dev make tk-dev uuid-dev wget xz-utils zlib1g-dev ; wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz"; 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-optimizations --enable-option-checking=fatal --enable-shared --with-lto --with-system-expat --without-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="$(dpkg-buildflags --get CFLAGS)"; LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"; LDFLAGS="${LDFLAGS:--Wl},--strip-all"; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-}" "PROFILE_TASK=${PROFILE_TASK:-}" ; rm python; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:--Wl},-rpath='\$\$ORIGIN/../lib'" "PROFILE_TASK=${PROFILE_TASK:-}" 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 '{}' + ; ldconfig; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec ldd '{}' ';' | awk '/=>/ { print $(NF-1) }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*; python3 --version # buildkit
2023-05-23 00:43:15 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; for src in idle3 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
2023-05-23 00:43:15 UTC (buildkit.dockerfile.v0)ENV PYTHON_PIP_VERSION=23.0.1
2023-05-23 00:43:15 UTC (buildkit.dockerfile.v0)ENV PYTHON_SETUPTOOLS_VERSION=65.5.1
2023-05-23 00:43:15 UTC (buildkit.dockerfile.v0)ENV PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/0d8570dc44796f4369b652222cf176b3db6ac70e/public/get-pip.py
2023-05-23 00:43:15 UTC (buildkit.dockerfile.v0)ENV PYTHON_GET_PIP_SHA256=96461deced5c2a487ddc65207ec5a9cffeca0d34e7af7ea1afc470ff0d746207
2023-05-23 00:43:15 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends wget; wget -O get-pip.py "$PYTHON_GET_PIP_URL"; echo "$PYTHON_GET_PIP_SHA256 *get-pip.py" | sha256sum -c -; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*; export PYTHONDONTWRITEBYTECODE=1; python get-pip.py --disable-pip-version-check --no-cache-dir --no-compile "pip==$PYTHON_PIP_VERSION" "setuptools==$PYTHON_SETUPTOOLS_VERSION" ; rm -f get-pip.py; pip --version # buildkit
2023-05-23 00:43:15 UTC (buildkit.dockerfile.v0)CMD ["python3"]
2023-09-04 03:19:55 UTC (buildkit.dockerfile.v0)COPY / / # buildkit
2023-09-04 03:36:26 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -xe && export DEBIAN_FRONTEND="noninteractive" && apt-get update -y && apt-get install -y wget bash && apt-get install -y $(echo $(wget --no-check-certificate -qO- https://raw.githubusercontent.com/hsuyelin/nas-tools/master/package_list_debian.txt)) && ln -sf /command/with-contenv /usr/bin/with-contenv && ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime && echo "${TZ}" > /etc/timezone && locale-gen zh_CN.UTF-8 && ln -sf /usr/bin/chromedriver /usr/lib/chromium/chromedriver && update-alternatives --install /usr/bin/python python /usr/local/bin/python3.10 3 && update-alternatives --install /usr/bin/python python /usr/bin/python3.9 2 && update-alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3.10 3 && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 2 && curl https://rclone.org/install.sh | bash && if [ "$(uname -m)" = "x86_64" ]; then ARCH=amd64; elif [ "$(uname -m)" = "aarch64" ]; then ARCH=arm64; fi && curl https://dl.min.io/client/mc/release/linux-${ARCH}/mc --create-dirs -o /usr/bin/mc && chmod +x /usr/bin/mc && apt-get install -y build-essential && pip install --upgrade pip setuptools wheel && pip install cython && pip install -r https://raw.githubusercontent.com/hsuyelin/nas-tools/master/requirements.txt && apt-get remove -y build-essential && apt-get autoremove -y && apt-get clean -y && rm -rf /tmp/* /root/.cache /var/lib/apt/lists/* /var/tmp/* # buildkit
2023-09-04 03:36:26 UTC (buildkit.dockerfile.v0)ENV S6_SERVICES_GRACETIME=30000 S6_KILL_GRACETIME=60000 S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 S6_SYNC_DISKS=1 HOME=/nt TERM=xterm PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/chromium:/command TZ=Asia/Shanghai NASTOOL_CONFIG=/config/config.yaml NASTOOL_AUTO_UPDATE=false NASTOOL_CN_UPDATE=true NASTOOL_VERSION=master REPO_URL=https://github.com/hsuyelin/nas-tools.git PYPI_MIRROR=https://pypi.tuna.tsinghua.edu.cn/simple PUID=0 PGID=0 UMASK=000 WORKDIR=/nas-tools
2023-09-04 03:36:26 UTC (buildkit.dockerfile.v0)WORKDIR /nas-tools
2023-09-04 03:36:30 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -xe && mkdir ${HOME} && groupadd -r nt -g 911 && useradd -r nt -g nt -d ${HOME} -s /bin/bash -u 911 && python_ver=$(python3 -V | awk '{print $2}') && echo "${WORKDIR}/" > /usr/local/lib/python${python_ver%.*}/site-packages/nas-tools.pth && echo 'fs.inotify.max_user_watches=5242880' >> /etc/sysctl.conf && echo 'fs.inotify.max_user_instances=5242880' >> /etc/sysctl.conf && echo "nt ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && git config --global pull.ff only && git clone -b master ${REPO_URL} ${WORKDIR} --depth=1 --recurse-submodule && git config --global --add safe.directory ${WORKDIR} # buildkit
2023-09-04 03:36:30 UTC (buildkit.dockerfile.v0)COPY ./rootfs / # buildkit
2023-09-04 03:36:30 UTC (buildkit.dockerfile.v0)EXPOSE map[3000/tcp:{}]
2023-09-04 03:36:30 UTC (buildkit.dockerfile.v0)VOLUME [/config]
2023-09-04 03:36:30 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["/init"]
Please be careful as this will not just delete the reference but also the actual content!
For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.