Namespace
mayanghua
Image / Tag
instock:202306
Content Digest
sha256:2ac43888e04b60bd46d3a800d9c22beeeca27b7b9ab355e087c40353594f4b7d
Details
Created

2023-06-28 17:12:01 +0800

Size

175 MB

Content Digest
Environment
GPG_KEY

A035C8C19219BA821ECEA86B64E628F8D684696D

LANG

zh_CN.UTF-8

LC_ALL

C

LC_CTYPE

zh_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_SHA256

5aefe6ade911d997af080b315ebcb7f882212d070465df544e1175ac2be519b4

PYTHON_GET_PIP_URL

https://github.com/pypa/get-pip/raw/5eaac1050023df1f5c98b173b248c260023f2278/public/get-pip.py

PYTHON_PIP_VERSION

22.2.2

PYTHON_SETUPTOOLS_VERSION

63.2.0

PYTHON_VERSION

3.11.0rc2


Layers

[#000] sha256:bd159e379b3b1bc0134341e4ffdeab5f966ec422ae04818bb69ecef08a823b05 - 17.12% (30 MB)

[#001] sha256:de08aeb7fd50562d57cef1a49d6197d619df0b4ce52e4caeba2402c27c6e536b - 0.59% (1.03 MB)

[#002] sha256:7091270c8142346c50104c203660e4c4101b4aa436630dbaff379be8e807eb5e - 6.85% (12 MB)

[#003] sha256:2f44657947b669a37ff4fd5e20c940223e2764524120615a6a74b9afe5ecd4ed - 0.0% (233 Bytes)

[#004] sha256:55e2b120f544f576df26220b1a65ed76cfed0e08c1ff9b21f76d6e55418b998b - 1.82% (3.18 MB)

[#005] sha256:8ba7c3ee52235175e41a07002daba8b50f8a12ba7c8d759a9472d2fef3554e0e - 73.12% (128 MB)

[#006] sha256:e1ce8dcac54923f60eb4672bbfbfe1672c64787241e687ce8202eefc694965a8 - 0.0% (94 Bytes)

[#007] sha256:9ed242d7f65b7246bfc3ac1132f36b08cdfcde99cbded5286184827d8edc7a15 - 0.5% (891 KB)

[#008] sha256:58d9b20e5581f0e0a047bbfbed2a830fbe93792a1b855590c1cf2eb7ca3b8820 - 0.0% (304 Bytes)

[#009] sha256:219541b6ff1bcc82a218dad2c986c4fb0a9b73804a0798bd6bc54709d3b6150c - 0.0% (304 Bytes)

[#010] sha256:56fb9ea48222e8ace45d2c8a8265162aca19dbfad6e14685fe582d099974477b - 0.0% (400 Bytes)

[#011] sha256:540ae9ee0cc5bf652b439ce8d32f72ba26010824a784d5f8f8bf91694a5862fe - 0.0% (1.57 KB)


History
2022-10-04 23:26:39 UTC

/bin/sh -c #(nop) ADD file:b78b777208be08edd8f297035cdfbacddb45170ad778fd643c792ee045187e39 in /

2022-10-04 23:26:39 UTC

/bin/sh -c #(nop) CMD ["bash"]

2022-10-05 13:41:52 UTC

/bin/sh -c #(nop) ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

2022-10-05 13:41:52 UTC

/bin/sh -c #(nop) ENV LANG=C.UTF-8

2022-10-05 13:41:57 UTC

/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/*

2022-10-05 13:41:57 UTC

/bin/sh -c #(nop) ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D

2022-10-05 13:41:58 UTC

/bin/sh -c #(nop) ENV PYTHON_VERSION=3.11.0rc2

2022-10-05 13:56:18 UTC

/bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends dpkg-dev gcc gnupg dirmngr libbluetooth-dev libbz2-dev libc6-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; command -v gpgconf > /dev/null && 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)"; make -j "$nproc" LDFLAGS="-Wl,--strip-all" ; 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

2022-10-05 13:56:18 UTC

/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

2022-10-05 13:56:19 UTC

/bin/sh -c #(nop) ENV PYTHON_PIP_VERSION=22.2.2

2022-10-05 13:56:19 UTC

/bin/sh -c #(nop) ENV PYTHON_SETUPTOOLS_VERSION=63.2.0

2022-10-05 13:56:19 UTC

/bin/sh -c #(nop) ENV PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/5eaac1050023df1f5c98b173b248c260023f2278/public/get-pip.py

2022-10-05 13:56:19 UTC

/bin/sh -c #(nop) ENV PYTHON_GET_PIP_SHA256=5aefe6ade911d997af080b315ebcb7f882212d070465df544e1175ac2be519b4

2022-10-05 13:56:30 UTC

/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

2022-10-05 13:56:30 UTC

/bin/sh -c #(nop) CMD ["python3"]

2023-05-25 09:41:31 +0800 (buildkit.dockerfile.v0)

MAINTAINER myh

2023-05-25 09:41:31 +0800 (buildkit.dockerfile.v0)

ENV LANG=zh_CN.UTF-8

2023-05-25 09:41:31 +0800 (buildkit.dockerfile.v0)

ENV LC_CTYPE=zh_CN.UTF-8

2023-05-25 09:41:31 +0800 (buildkit.dockerfile.v0)

ENV LC_ALL=C

2023-05-25 09:41:31 +0800 (buildkit.dockerfile.v0)

ENV PYTHONPATH=/data/InStock

2023-05-25 09:41:31 +0800 (buildkit.dockerfile.v0)

EXPOSE map[9988/tcp:{}]

2023-05-25 09:41:31 +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 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/* && apt-get clean && apt-get autoremove -y # buildkit

2023-05-25 09:41:31 +0800 (buildkit.dockerfile.v0)

WORKDIR /data

2023-06-28 17:12:00 +0800 (buildkit.dockerfile.v0)

COPY stock /data/InStock # buildkit

2023-06-28 17:12:00 +0800 (buildkit.dockerfile.v0)

COPY cron/cron.hourly /etc/cron.hourly # buildkit

2023-06-28 17:12:00 +0800 (buildkit.dockerfile.v0)

COPY cron/cron.workdayly /etc/cron.workdayly # buildkit

2023-06-28 17:12:00 +0800 (buildkit.dockerfile.v0)

COPY cron/cron.monthly /etc/cron.monthly # buildkit

2023-06-28 17:12:01 +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

2023-06-28 17:12:01 +0800 (buildkit.dockerfile.v0)

ENTRYPOINT ["supervisord" "-n" "-c" "/data/InStock/supervisor/supervisord.conf"]

Danger Zone
Delete Tag

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.

Delete