镜像构建历史
# 2025-11-28 22:42:21 7.06GB 执行命令并创建新的镜像层
RUN /bin/sh -c pip install -r requirements-freqai-rl.txt --user --no-cache-dir # buildkit
# 2025-11-28 22:40:59 492.00B 复制新文件或目录到容器中
COPY requirements-freqai.txt requirements-freqai-rl.txt /freqtrade/ # buildkit
# 2025-11-28 22:40:56 1.15GB 执行命令并创建新的镜像层
RUN /bin/sh -c pip install -r requirements-freqai.txt --user --no-cache-dir # buildkit
# 2025-11-28 22:40:34 260.00B 复制新文件或目录到容器中
COPY requirements-freqai.txt /freqtrade/ # buildkit
# 2025-11-28 22:39:00 0.00B 设置默认要执行的命令
CMD ["trade"]
# 2025-11-28 22:39:00 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["freqtrade"]
# 2025-11-28 22:39:00 4.82MB 执行命令并创建新的镜像层
RUN /bin/sh -c pip install -e . --user --no-cache-dir && mkdir /freqtrade/user_data/ && freqtrade install-ui # buildkit
# 2025-11-28 22:38:52 60.87MB 复制新文件或目录到容器中
COPY --chown=ftuser:ftuser . /freqtrade/ # buildkit
# 2025-11-28 22:38:51 0.00B 指定运行容器时使用的用户
USER ftuser
# 2025-11-28 22:38:51 711.71MB 复制新文件或目录到容器中
COPY --chown=ftuser:ftuser /home/ftuser/.local /home/ftuser/.local # buildkit
# 2025-11-28 22:38:48 0.00B 设置环境变量 LD_LIBRARY_PATH
ENV LD_LIBRARY_PATH=/usr/local/lib
# 2025-11-28 22:38:48 10.72MB 复制新文件或目录到容器中
COPY /usr/local/lib /usr/local/lib # buildkit
# 2025-11-28 22:37:45 0.00B 设置工作目录为/freqtrade
WORKDIR /freqtrade
# 2025-11-28 22:37:45 44.44MB 执行命令并创建新的镜像层
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-28 22:37:45 0.00B 设置环境变量 FT_APP_ENV
ENV FT_APP_ENV=docker
# 2025-11-28 22:37:45 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-28 22:37:45 0.00B 设置环境变量 PYTHONFAULTHANDLER
ENV PYTHONFAULTHANDLER=1
# 2025-11-28 22:37:45 0.00B 设置环境变量 PYTHONDONTWRITEBYTECODE
ENV PYTHONDONTWRITEBYTECODE=1
# 2025-11-28 22:37:45 0.00B 设置环境变量 LC_ALL
ENV LC_ALL=C.UTF-8
# 2025-11-28 22:37:45 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:19e6d5a225f6c11f93c677ebda7c16cec0f15ec823993d7c340d4f953692663b",
"RepoTags": [
"freqtradeorg/freqtrade:develop_freqaitorch",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/freqtradeorg/freqtrade:develop_freqaitorch"
],
"RepoDigests": [
"freqtradeorg/freqtrade@sha256:2310e8f7460222952b5529553dba8b38ab54092e6a1c9068824615c3ca4c225b",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/freqtradeorg/freqtrade@sha256:4baee23a42792a157710045133c893d3972145a4807a9c4458ba919b432386e7"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2025-11-28T14:42:21.328827755Z",
"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": 9157303267,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/c9100074546d17de1b20f44eaee3fdbb37f54c7041b23351299063809226e37b/diff:/var/lib/docker/overlay2/c3b4b7f09b9f513bdd8f601e469bdd22f2a1602b29c3dac641587fcb0bc94c32/diff:/var/lib/docker/overlay2/b498d95743a8375d1774ad660ef7cf57aa900d78fe39eb1731f0338ee5753a30/diff:/var/lib/docker/overlay2/2c67a83f9c492e7acdf3180bdee67f3e93841e3075e74cce09a7967c8c70b13f/diff:/var/lib/docker/overlay2/dab7f8b496299e1a521eaeb1128a5724096be3b430fcf8ca0b8ba70728f39a0d/diff:/var/lib/docker/overlay2/8b52e94b5bdda58e24202a09f2feb3ad742448b3141a40ab63bedb7968e0b236/diff:/var/lib/docker/overlay2/a5e84d49f98dc12bb9e26caf9bd8d736a3acc125f30d79b53aa9255bd8261288/diff:/var/lib/docker/overlay2/dfd9b792c8b3812e3ab35b3655e5ee2109782d5b7c6d25efa8f07636f6ca572c/diff:/var/lib/docker/overlay2/a75ed08683af748ffad987f9096a0e4c9c5833442bff3b57a904f9728bf57c68/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/5f74783a7c188b13e002b738e1115fc8b503eb60ad721be0e1f81ff9097b1769/merged",
"UpperDir": "/var/lib/docker/overlay2/5f74783a7c188b13e002b738e1115fc8b503eb60ad721be0e1f81ff9097b1769/diff",
"WorkDir": "/var/lib/docker/overlay2/5f74783a7c188b13e002b738e1115fc8b503eb60ad721be0e1f81ff9097b1769/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:aca83606673032726b42f8e1396ceb979c32bfb26b602732baf699053e46b33e",
"sha256:6440792f899d7f7adef9141133acdff1d732446d7259cca0e08115c65e14acfe",
"sha256:f9688aa978ce95aa629481919f8ef9bf3d65fe1f409b7aa598d42c594f8606a5",
"sha256:65185d483fc089ee74e57d7165a42a10d74be448c77033bb8c07b00855e8678e",
"sha256:c6c0baaf274f45ae6f60da23c224ed622c6bb9d3a7a7ca1caa9da41f20affea1",
"sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
"sha256:33eac2ad6d93c0b8d03e9b1b15471baba12a04ae05e030dd6af76ac3c382e0d3",
"sha256:9e1999f948fba08a0a0e8414f0d180736d22c8f199f867575ef05d7599e497a2",
"sha256:cb366b96ce33a675e53be449ca1f319bdb1c18f561d253cd206eb5bf1b90cf78",
"sha256:7b033755aeb78a8c19d8296243578339e8bf4d4a63dfee8aeaffbb4fcc200b28",
"sha256:6775f29ab82cb20c8e909385f607b321a9be6acd1a6ddab4f2232de887166e2e",
"sha256:3e426030a2fe60fc25873c3b58b4c400bfe91be048601c460b1435eac79b5aab",
"sha256:7bba63c80e241b621dca31edf0f49b55ab82b3f30308cc960d09d824bc953ca7",
"sha256:c75f7f6ec8a297f7997b9a0923d697dc05a2208864f01f97054da52886429fd5"
]
},
"Metadata": {
"LastTagTime": "2025-11-29T00:21:08.967686355+08:00"
}
}