2024-06-07 17:40:30 +0800
187 MB
A035C8C19219BA821ECEA86B64E628F8D684696D
LANGzh_CN.UTF-8
LC_ALLC
LC_CTYPEzh_CN.UTF-8
PATH/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PYTHONPATH/data/InStock
PYTHON_GET_PIP_SHA256dfe9fd5c28dc98b5ac17979a953ea550cec37ae1b47a5116007395bfacff2ab9
PYTHON_GET_PIP_URLhttps://github.com/pypa/get-pip/raw/dbf0c85f76fb6e1ab42aa672ffca6f0a675d9ee4/public/get-pip.py
PYTHON_PIP_VERSION24.0
PYTHON_SETUPTOOLS_VERSION65.5.1
PYTHON_VERSION3.11.9
[#000] sha256:728328ac3bde9b85225b1f0d60f5c149f5635a191f5d8eaeeb00e095d36ef9fd - 16.05% (30 MB)
[#001] sha256:1b1ca9b4dc3e3a61667ce56aa8973a0f79300a0d2bc1c677608fca5a20a6e71c - 0.55% (1.03 MB)
[#002] sha256:4574495dc7bcbcec9398e3a9b79cd8f45564e1ad3a1beecb3037ee17db523008 - 6.14% (11.5 MB)
[#003] sha256:340c3a8c76a8f115e5c005b82571ea9d36a24983f9764922c814547cbafdc80f - 0.0% (243 Bytes)
[#004] sha256:02b48cf7294aa41a2ab1377544761bf8a2be12ef5701846ac7f7bb5dee9bcb19 - 1.75% (3.27 MB)
[#005] sha256:be6d16c7c25299ea7c189349bea18c345fe36715b2f1c2a38fb30712e0f9fa91 - 74.16% (139 MB)
[#006] sha256:a8cec0196b308b90d66194a1483327581d1258a78687abd24ee2fc8212318245 - 0.0% (94 Bytes)
[#007] sha256:f1ce059713923e90f5d2bb5fc7bfc140ec427422e308a7ea263f10060df78ed6 - 1.35% (2.51 MB)
[#008] sha256:1a74ceeb1ca75fdf2c7bccc73a03889e6bb106382f61627f516aae2fc90b2e53 - 0.0% (299 Bytes)
[#009] sha256:eb9af71d6b512d0796dad7815c318a9fd1aedc1e53abccbef75a123ef8834928 - 0.0% (303 Bytes)
[#010] sha256:5b0d0c043efcb2c5d1f7ce00fda6524dd2437faaaa13cd8d660c1f010d92b9fa - 0.0% (399 Bytes)
[#011] sha256:793cb0d62e8805c5a182e8129bf5fe06ab39db6312ce90a6fc133a8af7ba7364 - 0.0% (1.61 KB)
/bin/sh -c #(nop) ADD file:9b38b383dd93169a663eed88edf3f2285b837257ead69dc40ab5ed1fb3f52c35 in /
2024-05-14 01:28:27 UTC/bin/sh -c #(nop) CMD ["bash"]
2024-04-03 15:49:18 UTC (buildkit.dockerfile.v0)ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2024-04-03 15:49:18 UTC (buildkit.dockerfile.v0)ENV LANG=C.UTF-8
2024-04-03 15:49:18 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
2024-04-03 15:49:18 UTC (buildkit.dockerfile.v0)ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
2024-04-03 15:49:18 UTC (buildkit.dockerfile.v0)ENV PYTHON_VERSION=3.11.9
2024-04-03 15:49:18 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 '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | 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
2024-04-03 15:49:18 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
2024-04-03 15:49:18 UTC (buildkit.dockerfile.v0)ENV PYTHON_PIP_VERSION=24.0
2024-04-03 15:49:18 UTC (buildkit.dockerfile.v0)ENV PYTHON_SETUPTOOLS_VERSION=65.5.1
2024-04-03 15:49:18 UTC (buildkit.dockerfile.v0)ENV PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/dbf0c85f76fb6e1ab42aa672ffca6f0a675d9ee4/public/get-pip.py
2024-04-03 15:49:18 UTC (buildkit.dockerfile.v0)ENV PYTHON_GET_PIP_SHA256=dfe9fd5c28dc98b5ac17979a953ea550cec37ae1b47a5116007395bfacff2ab9
2024-04-03 15:49:18 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
2024-04-03 15:49:18 UTC (buildkit.dockerfile.v0)CMD ["python3"]
2024-06-07 17:40:29 +0800 (buildkit.dockerfile.v0)MAINTAINER myh
2024-06-07 17:40:29 +0800 (buildkit.dockerfile.v0)ENV LANG=zh_CN.UTF-8
2024-06-07 17:40:29 +0800 (buildkit.dockerfile.v0)ENV LC_CTYPE=zh_CN.UTF-8
2024-06-07 17:40:29 +0800 (buildkit.dockerfile.v0)ENV LC_ALL=C
2024-06-07 17:40:29 +0800 (buildkit.dockerfile.v0)ENV PYTHONPATH=/data/InStock
2024-06-07 17:40:29 +0800 (buildkit.dockerfile.v0)EXPOSE map[9988/tcp:{}]
2024-06-07 17:40:29 +0800 (buildkit.dockerfile.v0)RUN /bin/sh -c sed -i "s@http://\(deb\|security\).debian.org@https://mirrors.aliyun.com@g" /etc/apt/sources.list && echo "[global]\nindex-url = https://pypi.tuna.tsinghua.edu.cn/simple\ntrusted-host = pypi.tuna.tsinghua.edu.cn" > /etc/pip.conf && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo "Asia/Shanghai" > /etc/timezone && apt-get update && apt-get install -y cron gcc make python3-dev default-libmysqlclient-dev build-essential pkg-config curl && pip install supervisor && pip install mysqlclient && pip install requests && pip install arrow && pip install numpy && pip install SQLAlchemy && pip install PyMySQL && pip install Logbook && pip install python_dateutil && pip install py_mini_racer && pip install tqdm && pip install beautifulsoup4 && pip install bokeh && pip install pandas && pip install tornado && pip install easytrader && curl -SL https://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz | tar -xzC . && cd ta-lib/ && ./configure --prefix=/usr && make && make install && cd .. && pip install TA-Lib && rm -rf ta-lib* && apt-get --purge remove -y gcc make python3-dev default-libmysqlclient-dev curl && rm -rf /root/.cache/* && rm -rf /var/lib/apt/lists/* && apt-get clean && apt-get autoclean && apt-get autoremove -y # buildkit
2024-06-07 17:40:29 +0800 (buildkit.dockerfile.v0)WORKDIR /data
2024-06-07 17:40:29 +0800 (buildkit.dockerfile.v0)COPY stock /data/InStock # buildkit
2024-06-07 17:40:29 +0800 (buildkit.dockerfile.v0)COPY cron/cron.hourly /etc/cron.hourly # buildkit
2024-06-07 17:40:29 +0800 (buildkit.dockerfile.v0)COPY cron/cron.workdayly /etc/cron.workdayly # buildkit
2024-06-07 17:40:29 +0800 (buildkit.dockerfile.v0)COPY cron/cron.monthly /etc/cron.monthly # buildkit
2024-06-07 17:40:30 +0800 (buildkit.dockerfile.v0)RUN /bin/sh -c chmod 755 /data/InStock/instock/bin/run_*.sh && chmod 755 /etc/cron.hourly/* && chmod 755 /etc/cron.workdayly/* && chmod 755 /etc/cron.monthly/* && echo "SHELL=/bin/sh \nPATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin \n*/30 9,10,11,13,14,15 * * 1-5 /bin/run-parts /etc/cron.hourly \n30 17 * * 1-5 /bin/run-parts /etc/cron.workdayly \n30 10 * * 3,6 /bin/run-parts /etc/cron.monthly \n" > /var/spool/cron/crontabs/root && chmod 600 /var/spool/cron/crontabs/root # buildkit
2024-06-07 17:40:30 +0800 (buildkit.dockerfile.v0)ENTRYPOINT ["supervisord" "-n" "-c" "/data/InStock/supervisor/supervisord.conf"]
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.