nas-tools (2.9.1)

Published 2024-01-08 03:26:12 +08:00 by bot

Installation

docker pull code.simcu.com/xrain/nas-tools:2.9.1
sha256:c6b1d6ee970219bf0d3ff7fda458145e7cac0ecc3f4e02efd5b98f6d6a84cd86

Image Layers

ADD file:40887ab7c06977737e63c215c9bd297c0c74de8d12d16ebdf1c3d40ac392f62d in /
CMD ["/bin/sh"]
RUN /bin/sh -c apk add --no-cache libffi-dev && apk add --no-cache $(echo $(wget --no-check-certificate -qO- https://raw.githubusercontent.com/wangyan/nas-tools/master/package_list.txt)) && ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime && echo "${TZ}" > /etc/timezone && ln -sf /usr/bin/python3 /usr/bin/python && 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 && pip install --upgrade pip setuptools wheel && pip install cython && pip install -r https://raw.githubusercontent.com/wangyan/nas-tools/master/requirements.txt && apk del libffi-dev && npm install pm2 -g && rm -rf /tmp/* /root/.cache /var/cache/apk/* # buildkit
ENV LANG=C.UTF-8 TZ=Asia/Shanghai NASTOOL_CONFIG=/config/config.yaml NASTOOL_AUTO_UPDATE=true NASTOOL_CN_UPDATE=true NASTOOL_VERSION=master PS1=\u@\h:\w $ REPO_URL=https://github.com/wangyan/nas-tools.git PYPI_MIRROR=https://pypi.tuna.tsinghua.edu.cn/simple ALPINE_MIRROR=mirrors.ustc.edu.cn PUID=0 PGID=0 UMASK=000 WORKDIR=/nas-tools
WORKDIR /nas-tools
RUN /bin/sh -c python_ver=$(python3 -V | awk '{print $2}') && echo "${WORKDIR}/" > /usr/lib/python${python_ver%.*}/site-packages/nas-tools.pth && echo 'fs.inotify.max_user_watches=524288' >> /etc/sysctl.conf && echo 'fs.inotify.max_user_instances=524288' >> /etc/sysctl.conf && 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
EXPOSE map[3000/tcp:{}]
VOLUME [/config]
ENTRYPOINT ["/nas-tools/docker/entrypoint.sh"]
Details
Container
2024-01-08 03:26:12 +08:00
221
OCI / Docker
linux/amd64
450 MiB
Versions (1) View all
2.9.1 2024-01-08