Namespace
mayanghua
Image / Tag
instock:202506
Content Digest
sha256:8d4f248165ff84ca8887ae5e07021c6eb357a82a92d11c04574eade49fdf1b75
Details
Created

2025-06-10 12:00:46 +0800

Size

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

8fb5f9fbc7609fa822cb31549884575db7fd9657cbffb89510b5d7975963a83a

PYTHON_VERSION

3.11.13


Layers

[#000] sha256:e1f16b66c2e86ad38458eba597e4ec79e4750398a28dbbc2d7819d829c4c9023 - 13.95% (28.9 MB)

[#001] sha256:55068ccf9224282903a479f338d13fc72a44d3b42f674924b92e1028d6275d4d - 0.5% (1.03 MB)

[#002] sha256:e8b381b85bdb85403d13e4a5857123a5964a905ac88c48e55b47f3294406600e - 10.16% (21 MB)

[#003] sha256:d0589d429b7591699d6a64a2bf562b8cebf6ca9eba08810880407d7dd8f84699 - 0.0% (249 Bytes)

[#004] sha256:0162e99c6d802358edb2b3a8f0bce6ec21b10dbc650ae96fffdf6538fe705f4e - 74.0% (153 MB)

[#005] sha256:56777b48aef668b7affb79b46321ad9fe69fdeaf98271b459709a654b0dc74ef - 0.0% (93 Bytes)

[#006] sha256:6acb3a688b74dd25cb6c2efac928598d9822c44f1df890587ee3194f785e6684 - 1.39% (2.87 MB)

[#007] sha256:38ba07487de213dd88e18dc663b1bcfed6422166395e78a341866e560f00cff0 - 0.0% (300 Bytes)

[#008] sha256:94b919cc22e830c0fdf9faaf738fa1402866b03cb6f1370fdaddecc83f71eac0 - 0.0% (300 Bytes)

[#009] sha256:6192d49aafb5c8429821616eec7b67eb986233ff8c347252bc6daffc8af5dda4 - 0.0% (393 Bytes)

[#010] sha256:40f48ed0a09f49a4f541f83c5aedb806b6692ff6689fd19a1c4966ba0cbca4a7 - 0.0% (1.6 KB)


History
2025-05-20 00:00:00 UTC (debuerreotype 0.15)

# debian.sh --arch 'amd64' out/ 'bullseye' '@1747699200'

2025-06-03 23:02:53 UTC (buildkit.dockerfile.v0)

ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

2025-06-03 23:02:53 UTC (buildkit.dockerfile.v0)

ENV LANG=C.UTF-8

2025-06-03 23:02:53 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

2025-06-03 23:02:53 UTC (buildkit.dockerfile.v0)

ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D

2025-06-03 23:02:53 UTC (buildkit.dockerfile.v0)

ENV PYTHON_VERSION=3.11.13

2025-06-03 23:02:53 UTC (buildkit.dockerfile.v0)

ENV PYTHON_SHA256=8fb5f9fbc7609fa822cb31549884575db7fd9657cbffb89510b5d7975963a83a

2025-06-03 23:02:53 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 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"; echo "$PYTHON_SHA256 *python.tar.xz" | sha256sum -c -; 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 $(test "$gnuArch" != 'riscv64-linux-musl' && echo '--with-lto') --with-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:-}" ; rm python; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:--Wl},-rpath='\$\$ORIGIN/../lib'" 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/*; export PYTHONDONTWRITEBYTECODE=1; python3 --version; pip3 install --disable-pip-version-check --no-cache-dir --no-compile 'setuptools==65.5.1' 'wheel<0.46' ; pip3 --version # buildkit

2025-06-03 23:02:53 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; for src in idle3 pip3 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

2025-06-03 23:02:53 UTC (buildkit.dockerfile.v0)

CMD ["python3"]

2025-06-10 10:55:41 +0800 (buildkit.dockerfile.v0)

MAINTAINER myh

2025-06-10 10:55:41 +0800 (buildkit.dockerfile.v0)

ENV LANG=zh_CN.UTF-8

2025-06-10 10:55:41 +0800 (buildkit.dockerfile.v0)

ENV LC_CTYPE=zh_CN.UTF-8

2025-06-10 10:55:41 +0800 (buildkit.dockerfile.v0)

ENV LC_ALL=C

2025-06-10 10:55:41 +0800 (buildkit.dockerfile.v0)

ENV PYTHONPATH=/data/InStock

2025-06-10 10:55:41 +0800 (buildkit.dockerfile.v0)

EXPOSE map[9988/tcp:{}]

2025-06-10 10:55:41 +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://mirrors.aliyun.com/pypi/simple\ntrusted-host = mirrors.aliyun.com" > /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 mini-racer && pip install easytrader && mkdir ta-lib && curl -SL $(curl -s https://api.github.com/repos/ta-lib/ta-lib/releases/latest | grep browser_download_url | cut -d'"' -f4 |grep -E 'tar.gz$') | tar -xz --strip-components=1 -C ./ta-lib && cd ta-lib/ && ./configure && 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

2025-06-10 10:55:42 +0800 (buildkit.dockerfile.v0)

WORKDIR /data

2025-06-10 12:00:44 +0800 (buildkit.dockerfile.v0)

COPY stock /data/InStock # buildkit

2025-06-10 12:00:45 +0800 (buildkit.dockerfile.v0)

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

2025-06-10 12:00:45 +0800 (buildkit.dockerfile.v0)

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

2025-06-10 12:00:45 +0800 (buildkit.dockerfile.v0)

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

2025-06-10 12:00:46 +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

2025-06-10 12:00:46 +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