镜像构建历史
# 2024-12-09 15:08:46 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["supervisord" "-n" "-c" "/data/InStock/supervisor/supervisord.conf"]
# 2024-12-09 15:08:46 2.66KB 执行命令并创建新的镜像层
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-12-09 15:08:46 442.00B 复制新文件或目录到容器中
COPY cron/cron.monthly /etc/cron.monthly # buildkit
# 2024-12-09 15:08:45 174.00B 复制新文件或目录到容器中
COPY cron/cron.workdayly /etc/cron.workdayly # buildkit
# 2024-12-09 15:08:45 173.00B 复制新文件或目录到容器中
COPY cron/cron.hourly /etc/cron.hourly # buildkit
# 2024-12-09 15:08:45 10.14MB 复制新文件或目录到容器中
COPY stock /data/InStock # buildkit
# 2024-12-09 15:08:45 0.00B 设置工作目录为/data
WORKDIR /data
# 2024-12-09 15:08:45 542.00MB 执行命令并创建新的镜像层
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 && 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-12-09 15:08:45 0.00B 声明容器运行时监听的端口
EXPOSE map[9988/tcp:{}]
# 2024-12-09 15:08:45 0.00B 设置环境变量 PYTHONPATH
ENV PYTHONPATH=/data/InStock
# 2024-12-09 15:08:45 0.00B 设置环境变量 LC_ALL
ENV LC_ALL=C
# 2024-12-09 15:08:45 0.00B 设置环境变量 LC_CTYPE
ENV LC_CTYPE=zh_CN.UTF-8
# 2024-12-09 15:08:45 0.00B 设置环境变量 LANG
ENV LANG=zh_CN.UTF-8
# 2024-12-09 15:08:45 0.00B
MAINTAINER myh
# 2024-12-04 06:49:59 0.00B 设置默认要执行的命令
CMD ["python3"]
# 2024-12-04 06:49:59 36.00B 执行命令并创建新的镜像层
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-12-04 06:49:59 43.52MB 执行命令并创建新的镜像层
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-12-04 06:49:59 0.00B 设置环境变量 PYTHON_SHA256
ENV PYTHON_SHA256=2a9920c7a0cd236de33644ed980a13cbbc21058bfdc528febb6081575ed73be3
# 2024-12-04 06:49:59 0.00B 设置环境变量 PYTHON_VERSION
ENV PYTHON_VERSION=3.11.11
# 2024-12-04 06:49:59 0.00B 设置环境变量 GPG_KEY
ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
# 2024-12-04 06:49:59 2.33MB 执行命令并创建新的镜像层
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-12-04 06:49:59 0.00B 设置环境变量 LANG
ENV LANG=C.UTF-8
# 2024-12-04 06:49:59 0.00B 设置环境变量 PATH
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2024-12-02 08:00:00 80.66MB
# debian.sh --arch 'amd64' out/ 'bullseye' '@1733097600'
镜像信息
{
"Id": "sha256:43b619033c4994744effc2640c4fcf7cc669e23ea879d629c59eea3224ca40c7",
"RepoTags": [
"mayanghua/instock:latest",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mayanghua/instock:latest"
],
"RepoDigests": [
"mayanghua/instock@sha256:218f56d6249e6a1dae51ea7119ccf2ee466a11649dbaeaa0a8762e639bd36d65",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mayanghua/instock@sha256:7d6315d39865ea375cc76ab203952cde580bec517d28cb4e2337bd4fe8a74a63"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2024-12-09T15:08:46.847107317+08:00",
"Container": "",
"ContainerConfig": null,
"DockerVersion": "",
"Author": "myh",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"9988/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"LANG=zh_CN.UTF-8",
"GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D",
"PYTHON_VERSION=3.11.11",
"PYTHON_SHA256=2a9920c7a0cd236de33644ed980a13cbbc21058bfdc528febb6081575ed73be3",
"LC_CTYPE=zh_CN.UTF-8",
"LC_ALL=C",
"PYTHONPATH=/data/InStock"
],
"Cmd": null,
"Image": "",
"Volumes": null,
"WorkingDir": "/data",
"Entrypoint": [
"supervisord",
"-n",
"-c",
"/data/InStock/supervisor/supervisord.conf"
],
"OnBuild": null,
"Labels": null
},
"Architecture": "amd64",
"Os": "linux",
"Size": 678638799,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/5d760749d40a35d235d0e0c456800dba724053a23c6c813daed2e945aabff353/diff:/var/lib/docker/overlay2/a35c573d62ab4e806b991d523413b65ad6c1452e43b89ced0fe7c0b73a3d67cf/diff:/var/lib/docker/overlay2/4ac311d78735159e05267841d456316786d3981c1da245be089491bb6e864f16/diff:/var/lib/docker/overlay2/afc420adbbd52e807d25e6144b9a7420d84dd005df0899532a5f52416e60fc65/diff:/var/lib/docker/overlay2/524671eb54cdbf9c6041476f87fbef314dc3d751016e13793243cda7695552da/diff:/var/lib/docker/overlay2/fb17317c4aee2849f4e6d4daeac368e4b87d2ff1846d8663135c0b296a0661ba/diff:/var/lib/docker/overlay2/1df2f9419739c590b0b14fce92262e230d6cb96ce7d5d77610170c255304ce75/diff:/var/lib/docker/overlay2/4d8d31131a1a5f945f9507ae241e238b682324c1e33e5d1e7631673a334a4072/diff:/var/lib/docker/overlay2/20b362a63fe0c3083465ea1800ef70199bb2275123a9708c8fe672a7364fd053/diff:/var/lib/docker/overlay2/12d0644a23b709834a500bc47853c1c0041c2dc276e44395ba0a8a325d447489/diff",
"MergedDir": "/var/lib/docker/overlay2/e739a06ece89d11a720acb218137af7be3dce4b274346d1657ed276c023dc5f8/merged",
"UpperDir": "/var/lib/docker/overlay2/e739a06ece89d11a720acb218137af7be3dce4b274346d1657ed276c023dc5f8/diff",
"WorkDir": "/var/lib/docker/overlay2/e739a06ece89d11a720acb218137af7be3dce4b274346d1657ed276c023dc5f8/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:6a4fdc7ff1bfb236bd5caadebad42a7a36cbab09ee1eff157659d5adb47f6500",
"sha256:93837d2600e12fbd5fdfcf2a940541726a425d32df208d582c0989237ff4592b",
"sha256:0e90966e315a7cf2f28600c371ccc5f8ccdce49a36d85dbac9156416f6488b4e",
"sha256:e3c1519f2a74f1b1ea1a02ae89a4e9e6ae94eb7a2294e827adf3497fe557235a",
"sha256:e79b9a666ae797b199baa246fb85079fee63cef52a67a250e102071d68a1b516",
"sha256:13c78aad54fec91f7abcd27af1e49425617a599653e23787476266ee85e1eef5",
"sha256:64a6161d31cc9d0fcde70fe541e5fd828f2b9ff95f20b6893823253bb7487e32",
"sha256:c862e29102210907384cb0980cf25b323f058a44a8740d37bdef2cf43117b042",
"sha256:4ff11f1f76de6b71c9dade1882c06a826c92553d2349e59d084c07197b57c9b8",
"sha256:38af5ac890f9cc55c24a5b4ea65b1ac55993af93d1d1c508c04a14dceb3a9e6f",
"sha256:7273f8f7c1e409e1634c4e096e920c299e9a08aa7a1233160eb9812710857fb1"
]
},
"Metadata": {
"LastTagTime": "2024-12-10T16:25:31.427709624+08:00"
}
}