镜像构建历史
# 2025-11-01 00:20:42 7.06GB 执行命令并创建新的镜像层
RUN /bin/sh -c pip install -r requirements-freqai-rl.txt --user --no-cache-dir # buildkit
# 2025-11-01 00:18:30 492.00B 复制新文件或目录到容器中
COPY requirements-freqai.txt requirements-freqai-rl.txt /freqtrade/ # buildkit
# 2025-11-01 00:18:26 1.15GB 执行命令并创建新的镜像层
RUN /bin/sh -c pip install -r requirements-freqai.txt --user --no-cache-dir # buildkit
# 2025-11-01 00:18:05 260.00B 复制新文件或目录到容器中
COPY requirements-freqai.txt /freqtrade/ # buildkit
# 2025-11-01 00:08:43 0.00B 设置默认要执行的命令
CMD ["trade"]
# 2025-11-01 00:08:43 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["freqtrade"]
# 2025-11-01 00:08:43 4.82MB 执行命令并创建新的镜像层
RUN /bin/sh -c pip install -e . --user --no-cache-dir && mkdir /freqtrade/user_data/ && freqtrade install-ui # buildkit
# 2025-11-01 00:08:36 60.71MB 复制新文件或目录到容器中
COPY --chown=ftuser:ftuser . /freqtrade/ # buildkit
# 2025-11-01 00:08:35 0.00B 指定运行容器时使用的用户
USER ftuser
# 2025-11-01 00:08:35 693.05MB 复制新文件或目录到容器中
COPY --chown=ftuser:ftuser /home/ftuser/.local /home/ftuser/.local # buildkit
# 2025-11-01 00:08:31 0.00B 设置环境变量 LD_LIBRARY_PATH
ENV LD_LIBRARY_PATH=/usr/local/lib
# 2025-11-01 00:08:31 10.72MB 复制新文件或目录到容器中
COPY /usr/local/lib /usr/local/lib # buildkit
# 2025-11-01 00:07:31 0.00B 设置工作目录为/freqtrade
WORKDIR /freqtrade
# 2025-11-01 00:07:31 44.43MB 执行命令并创建新的镜像层
RUN /bin/sh -c mkdir /freqtrade && apt-get update && apt-get -y install sudo libatlas3-base curl sqlite3 libgomp1 && apt-get clean && useradd -u 1000 -G sudo -U -m -s /bin/bash ftuser && chown ftuser:ftuser /freqtrade && echo "ftuser ALL=(ALL) NOPASSWD: /bin/chown" >> /etc/sudoers # buildkit
# 2025-11-01 00:07:31 0.00B 设置环境变量 FT_APP_ENV
ENV FT_APP_ENV=docker
# 2025-11-01 00:07:31 0.00B 设置环境变量 PATH
ENV PATH=/home/ftuser/.local/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2025-11-01 00:07:31 0.00B 设置环境变量 PYTHONFAULTHANDLER
ENV PYTHONFAULTHANDLER=1
# 2025-11-01 00:07:31 0.00B 设置环境变量 PYTHONDONTWRITEBYTECODE
ENV PYTHONDONTWRITEBYTECODE=1
# 2025-11-01 00:07:31 0.00B 设置环境变量 LC_ALL
ENV LC_ALL=C.UTF-8
# 2025-11-01 00:07:31 0.00B 设置环境变量 LANG
ENV LANG=C.UTF-8
# 2025-10-08 01:53:11 0.00B 设置默认要执行的命令
CMD ["python3"]
# 2025-10-08 01:53:11 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
# 2025-10-08 01:53:11 36.27MB 执行命令并创建新的镜像层
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' && echo '--with-lto') --with-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="$(dpkg-buildflags --get CFLAGS)"; LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"; LDFLAGS="${LDFLAGS:--Wl},--strip-all"; arch="$(dpkg --print-architecture)"; arch="${arch##*-}"; case "$arch" in amd64|arm64) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"; ;; i386) ;; *) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer"; ;; esac; 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 -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | 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 --version # buildkit
# 2025-10-08 01:53:11 0.00B 设置环境变量 PYTHON_SHA256
ENV PYTHON_SHA256=b9910730526b298299b46b35595ced9055722df60c06ad6301f6a4e2c728a252
# 2025-10-08 01:53:11 0.00B 设置环境变量 PYTHON_VERSION
ENV PYTHON_VERSION=3.13.8
# 2025-10-08 01:53:11 0.00B 设置环境变量 GPG_KEY
ENV GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305
# 2025-10-08 01:53:11 9.25MB 执行命令并创建新的镜像层
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-10-08 01:53:11 0.00B 设置环境变量 PATH
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2025-09-29 08:00:00 74.81MB
# debian.sh --arch 'amd64' out/ 'bookworm' '@1759104000'
镜像信息
{
"Id": "sha256:b13d406be1bc455035526ca3c50f92d375bfb8a5afa29c6f3745a37606dc9666",
"RepoTags": [
"freqtradeorg/freqtrade:stable_freqaitorch",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/freqtradeorg/freqtrade:stable_freqaitorch"
],
"RepoDigests": [
"freqtradeorg/freqtrade@sha256:b617ad04d24f116f40caa16dc158f0148b9e9b0b915a3cbc6e372de231c5eaf5",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/freqtradeorg/freqtrade@sha256:dcf666b7111cee4f46e92011ad8857be72127bc51f4015845b80da7b9664cea7"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2025-10-31T16:20:42.466592184Z",
"Container": "",
"ContainerConfig": null,
"DockerVersion": "",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "ftuser",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/home/ftuser/.local/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305",
"PYTHON_VERSION=3.13.8",
"PYTHON_SHA256=b9910730526b298299b46b35595ced9055722df60c06ad6301f6a4e2c728a252",
"LANG=C.UTF-8",
"LC_ALL=C.UTF-8",
"PYTHONDONTWRITEBYTECODE=1",
"PYTHONFAULTHANDLER=1",
"FT_APP_ENV=docker",
"LD_LIBRARY_PATH=/usr/local/lib"
],
"Cmd": [
"trade"
],
"ArgsEscaped": true,
"Image": "",
"Volumes": null,
"WorkingDir": "/freqtrade",
"Entrypoint": [
"freqtrade"
],
"OnBuild": null,
"Labels": null
},
"Architecture": "amd64",
"Os": "linux",
"Size": 9137306297,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/51046c80f3fdbdb6d2fce50f0b9682488683bda64e60790edd46357035839032/diff:/var/lib/docker/overlay2/9d95415592c16aa48652d121c853b7629f6e63304d73a1f2c37b6e81fd24e697/diff:/var/lib/docker/overlay2/f3c546c65ac1799120e301b1b75468dbaee2555403c848a8f3d2883091f4988e/diff:/var/lib/docker/overlay2/1cfc61d050d4e2c0e9f3499a7aeb60a3c2f0a145580f858a6f3c010c94b7c2a6/diff:/var/lib/docker/overlay2/89ad7f9c4206d6c2269dad51abe35b8cde6a0ae93b708e15cfca86b2f6368bfc/diff:/var/lib/docker/overlay2/44c1ba5f0058e78af0b57144efc35c59e881abaab1eaa1775e9e98a813724e24/diff:/var/lib/docker/overlay2/fc67b28a3c61761cac3b7a1c465b071880f7e3d9a5ae2a13004b74344c75b47c/diff:/var/lib/docker/overlay2/eeae0cd0d6a2cd2fe85c071400536b5d56856fbaa68071c94099f89606cf008a/diff:/var/lib/docker/overlay2/fb11df6493dd540e59d41905dee3b5203f18fbc26e77d7f329e4ba840f113888/diff:/var/lib/docker/overlay2/afb854fb2cba313194dd4bced9bbf1b8aaf9a36378fac42cf116c2f25f2328eb/diff:/var/lib/docker/overlay2/55288a34cc1a0bb8b993e8b34343c9358b26805740e9e7c6642e7cae36e7a6fe/diff:/var/lib/docker/overlay2/2e9a35fcd6d6a0957fc48e4f371b8bdb72cb12fc81e5957e21bf3b7f1ac6e7bb/diff:/var/lib/docker/overlay2/2b13eb0f4926462bee1471c3ddbb7bc88904b450881e60fa80f3ee56fd6c6ebf/diff",
"MergedDir": "/var/lib/docker/overlay2/de6982bf7b6ea28d13df034b8029511b30d4e6c15f41479dba660acdaf71654a/merged",
"UpperDir": "/var/lib/docker/overlay2/de6982bf7b6ea28d13df034b8029511b30d4e6c15f41479dba660acdaf71654a/diff",
"WorkDir": "/var/lib/docker/overlay2/de6982bf7b6ea28d13df034b8029511b30d4e6c15f41479dba660acdaf71654a/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:aca83606673032726b42f8e1396ceb979c32bfb26b602732baf699053e46b33e",
"sha256:6440792f899d7f7adef9141133acdff1d732446d7259cca0e08115c65e14acfe",
"sha256:f9688aa978ce95aa629481919f8ef9bf3d65fe1f409b7aa598d42c594f8606a5",
"sha256:65185d483fc089ee74e57d7165a42a10d74be448c77033bb8c07b00855e8678e",
"sha256:e41263bcd518f901df0435f261b271d7b2862e51eed65e5c1b48a2b9ed523c89",
"sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
"sha256:94be040c8a5a6f1391e29ab5e022b3631910a1e4a97ec17601355791187aae72",
"sha256:5ad4f734faeaae5c082f992d9de6c04d49e6a49e47036e4c547e905fa2f59617",
"sha256:079fa8ccce7f48146891935209fce44629aac8a3d93b8bd9d288103063eb4bf3",
"sha256:4ca51cf684516c2145c7e0ff68ced6c6a8cb7d0dfd834f3b069b7178e4177d39",
"sha256:66ca1fe8f5b45094303b68ffc0d86ebf8b118b2c19ea206371575f52ca4a539e",
"sha256:e6250e1154ccc7b250bf11e3f0143adf271a670f1060e99798cf77771b8c924c",
"sha256:fbe2de8eef42d680c808b14730cb213691321b57bb681efddcaa7f15df3f8b94",
"sha256:3fac9e6d7545d7a0a1743b6c2235621c2f56d0f8730ce1cb3655ee91635d92df"
]
},
"Metadata": {
"LastTagTime": "2025-11-29T00:47:59.675652466+08:00"
}
}