Namespace
mayanghua
Image / Tag
instock:202411
Content Digest
sha256:728daf3eb61fa6a385094e22fab38abe530ebd9d3065baf28f4de713361d212a
Details
Created

2024-11-15 11:04:15 +0800

Size

185 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

07a4356e912900e61a15cb0949a06c4a05012e213ecd6b4e84d0f67aabbee372

PYTHON_VERSION

3.11.10


Layers

[#000] sha256:55ab1b300d4b4b00c98fb396b36f0f7ba5dab2f7d18927e3742d364632723cbe - 16.2% (30 MB)

[#001] sha256:7bbce50388ecc9377438b472c286f3713ff932564da0346609f04c08eaa9f059 - 0.45% (851 KB)

[#002] sha256:2fe2526b64dfe2b17fe8a15d90fdb4493c07f602e671b39d3a1d5b8ca5307492 - 7.94% (14.7 MB)

[#003] sha256:782257b4c34288407aec05f34732779c1acd0631c052169746aef481854fc2b3 - 0.0% (250 Bytes)

[#004] sha256:8b101fc3fff6a4275a02b98efa521f4f8759a01d0c5e2e814df8034e41294547 - 73.94% (137 MB)

[#005] sha256:38a0ff97e0e10e2b651fc30ca0c5b88b9b92c40a0d5c2e29831aad0a396de3d8 - 0.0% (93 Bytes)

[#006] sha256:3499b40cbbe4013b03ce33cc5c1c0abaedbd08bfe63f50db2dd6bf69d6ab1ece - 1.47% (2.72 MB)

[#007] sha256:6d86fd85a39ebc4f55ecba2e977f03d8f2c8e30fb74da9a523332d9a78f693b7 - 0.0% (299 Bytes)

[#008] sha256:24c44dabbd6d15d1d6b124549c15ce9f3cbedd413ea144a312397b9309167e70 - 0.0% (303 Bytes)

[#009] sha256:41713d7a26ee188e999bf4fe35718a8651cda4aef27fbc1f7e71bae273426768 - 0.0% (399 Bytes)

[#010] sha256:9807447fa65abc81ab428bdb0fd673650a3cb8b6ecbc047d4781f34d59447c46 - 0.0% (1.6 KB)


History
2024-10-18 23:23:40 UTC (buildkit.dockerfile.v0)

ADD rootfs.tar.xz / # buildkit

2024-10-18 23:23:40 UTC (buildkit.dockerfile.v0)

CMD ["bash"]

2024-10-18 23:23:40 UTC (buildkit.dockerfile.v0)

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

2024-10-18 23:23:40 UTC (buildkit.dockerfile.v0)

ENV LANG=C.UTF-8

2024-10-18 23:23:40 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-10-18 23:23:40 UTC (buildkit.dockerfile.v0)

ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D

2024-10-18 23:23:40 UTC (buildkit.dockerfile.v0)

ENV PYTHON_VERSION=3.11.10

2024-10-18 23:23:40 UTC (buildkit.dockerfile.v0)

ENV PYTHON_SHA256=07a4356e912900e61a15cb0949a06c4a05012e213ecd6b4e84d0f67aabbee372

2024-10-18 23:23:40 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 --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 ; pip3 --version # buildkit

2024-10-18 23:23:40 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

2024-10-18 23:23:40 UTC (buildkit.dockerfile.v0)

CMD ["python3"]

2024-11-15 11:04:14 +0800 (buildkit.dockerfile.v0)

MAINTAINER myh

2024-11-15 11:04:14 +0800 (buildkit.dockerfile.v0)

ENV LANG=zh_CN.UTF-8

2024-11-15 11:04:14 +0800 (buildkit.dockerfile.v0)

ENV LC_CTYPE=zh_CN.UTF-8

2024-11-15 11:04:14 +0800 (buildkit.dockerfile.v0)

ENV LC_ALL=C

2024-11-15 11:04:14 +0800 (buildkit.dockerfile.v0)

ENV PYTHONPATH=/data/InStock

2024-11-15 11:04:14 +0800 (buildkit.dockerfile.v0)

EXPOSE map[9988/tcp:{}]

2024-11-15 11:04:14 +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 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-11-15 11:04:14 +0800 (buildkit.dockerfile.v0)

WORKDIR /data

2024-11-15 11:04:14 +0800 (buildkit.dockerfile.v0)

COPY stock /data/InStock # buildkit

2024-11-15 11:04:14 +0800 (buildkit.dockerfile.v0)

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

2024-11-15 11:04:14 +0800 (buildkit.dockerfile.v0)

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

2024-11-15 11:04:14 +0800 (buildkit.dockerfile.v0)

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

2024-11-15 11:04:15 +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-11-15 11:04:15 +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