2024-07-16 09:58:52 +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_SHA256ee09098395e42eb1f82ef4acb231a767a6ae85504a9cf9983223df0a7cbd35d7
PYTHON_GET_PIP_URLhttps://github.com/pypa/get-pip/raw/e03e1607ad60522cf34a92e834138eb89f57667c/public/get-pip.py
PYTHON_PIP_VERSION24.0
PYTHON_SETUPTOOLS_VERSION65.5.1
PYTHON_VERSION3.11.9
[#000] sha256:76956b537f14770ffd78afbe4f17016b2794c4b9b568325e8079089ea5c4e8cd - 16.06% (30 MB)
[#001] sha256:8c100e54bf68eb70353bc6b5a7af71c0eab4eacc38b0085892096c2de7ce747f - 0.55% (1.03 MB)
[#002] sha256:7dabe778191072ed3f217b15454db0897c0a53b95ce621f4aed2185d2dec725e - 6.15% (11.5 MB)
[#003] sha256:5aaf9b2292424d13c80685eee26a3418f7a6c4817849ab855fc201616c23fba2 - 0.0% (230 Bytes)
[#004] sha256:5104a32e73cb7b739f7b53a47abd37fd67581bf2665c7cdfb743fb5f1d80070d - 1.64% (3.06 MB)
[#005] sha256:8c2c1017963f869440f89ec7a63e9cd9c8cf3f619779e38302ca63d3636b030b - 74.15% (138 MB)
[#006] sha256:16cd61143ff55be687051b9e9424e7bc59624afee5406fc366c400bc90142fb9 - 0.0% (93 Bytes)
[#007] sha256:c5afcd0eb1ebfb59ab9c1e0817a0ef6bcde69cd4e76445675b339f1c71622950 - 1.45% (2.71 MB)
[#008] sha256:1b8f39f6af68b4680fceccce456321f153d40d3ff386d1e10dd92d44802cd3a3 - 0.0% (300 Bytes)
[#009] sha256:8c01a733f5f2268eca24e9997b7adf89670d2ba3309dbd6b21f131fe1dd17758 - 0.0% (304 Bytes)
[#010] sha256:1a49874668a6fefa24720cab12d7ad290d648d3b8cbcd861f8a023f799a6a9d4 - 0.0% (399 Bytes)
[#011] sha256:ea92859500ed339105f8b88d121441366571759e4bc5f173dd6dee5ec0ba6e1f - 0.0% (1.59 KB)
/bin/sh -c #(nop) ADD file:49759b7a74bac875e3619e20ed5a9521101c7729f601d90976d0755d30e97499 in /
2024-07-02 01:25:24 UTC/bin/sh -c #(nop) CMD ["bash"]
2024-07-07 22:31:37 UTC (buildkit.dockerfile.v0)ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2024-07-07 22:31:37 UTC (buildkit.dockerfile.v0)ENV LANG=C.UTF-8
2024-07-07 22:31:37 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-07-07 22:31:37 UTC (buildkit.dockerfile.v0)ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
2024-07-07 22:31:37 UTC (buildkit.dockerfile.v0)ENV PYTHON_VERSION=3.11.9
2024-07-07 22:31:37 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-07-07 22:31:37 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-07-07 22:31:37 UTC (buildkit.dockerfile.v0)ENV PYTHON_PIP_VERSION=24.0
2024-07-07 22:31:37 UTC (buildkit.dockerfile.v0)ENV PYTHON_SETUPTOOLS_VERSION=65.5.1
2024-07-07 22:31:37 UTC (buildkit.dockerfile.v0)ENV PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/e03e1607ad60522cf34a92e834138eb89f57667c/public/get-pip.py
2024-07-07 22:31:37 UTC (buildkit.dockerfile.v0)ENV PYTHON_GET_PIP_SHA256=ee09098395e42eb1f82ef4acb231a767a6ae85504a9cf9983223df0a7cbd35d7
2024-07-07 22:31:37 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-07-07 22:31:37 UTC (buildkit.dockerfile.v0)CMD ["python3"]
2024-07-16 09:58:51 +0800 (buildkit.dockerfile.v0)MAINTAINER myh
2024-07-16 09:58:51 +0800 (buildkit.dockerfile.v0)ENV LANG=zh_CN.UTF-8
2024-07-16 09:58:51 +0800 (buildkit.dockerfile.v0)ENV LC_CTYPE=zh_CN.UTF-8
2024-07-16 09:58:51 +0800 (buildkit.dockerfile.v0)ENV LC_ALL=C
2024-07-16 09:58:51 +0800 (buildkit.dockerfile.v0)ENV PYTHONPATH=/data/InStock
2024-07-16 09:58:51 +0800 (buildkit.dockerfile.v0)EXPOSE map[9988/tcp:{}]
2024-07-16 09:58:51 +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==1.26.4 && 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-07-16 09:58:51 +0800 (buildkit.dockerfile.v0)WORKDIR /data
2024-07-16 09:58:51 +0800 (buildkit.dockerfile.v0)COPY stock /data/InStock # buildkit
2024-07-16 09:58:51 +0800 (buildkit.dockerfile.v0)COPY cron/cron.hourly /etc/cron.hourly # buildkit
2024-07-16 09:58:51 +0800 (buildkit.dockerfile.v0)COPY cron/cron.workdayly /etc/cron.workdayly # buildkit
2024-07-16 09:58:51 +0800 (buildkit.dockerfile.v0)COPY cron/cron.monthly /etc/cron.monthly # buildkit
2024-07-16 09:58:52 +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-07-16 09:58:52 +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.