cadence-toolchain (3d65c9ce3d54)
Published 2026-09-10 16:10:31 -04:00 by artificer
Installation
docker pull git.artificery.dev/artificery/cadence-toolchain:3d65c9ce3d54sha256:5c6033e4bd3ff2679e762fb37765cb9b3a99a47837c9eca0b686de3159039ec5Image layers
| # debian.sh --arch 'amd64' out/ 'bookworm' '@1787529600' |
| RUN apt-get update && apt-get install -y --no-install-recommends build-essential gcc-aarch64-linux-gnu libc6-dev-arm64-cross gcc-arm-linux-gnueabihf libc6-dev-armhf-cross dpkg-dev file git ca-certificates curl unzip xz-utils util-linux && rm -rf /var/lib/apt/lists/* |
| RUN curl -fsSL https://sh.rustup.rs | sh -s -- -y --no-modify-path --profile minimal --default-toolchain ${RUST_VERSION} --target aarch64-unknown-linux-gnu,armv7-unknown-linux-gnueabihf && chmod -R a+rX,a+w /opt/cargo /opt/rustup && rustc --version |
| RUN curl -fsSL "https://storage.googleapis.com/dart-archive/channels/stable/release/${DART_VERSION}/sdk/dartsdk-linux-x64-release.zip" -o /tmp/dart.zip && echo "${DART_SDK_SHA256} /tmp/dart.zip" | sha256sum -c - && unzip -q /tmp/dart.zip -d /opt && rm /tmp/dart.zip && chmod -R a+rX /opt/dart-sdk && /opt/dart-sdk/bin/dart --version |
| RUN apt-get update && apt-get install -y --no-install-recommends clang cmake ninja-build pkg-config libstdc++-12-dev && rm -rf /var/lib/apt/lists/* |
| RUN apt-get update && apt-get install -y --no-install-recommends libgtk-3-dev liblzma-dev libmpv-dev libepoxy-dev && rm -rf /var/lib/apt/lists/* |
| RUN git clone --depth 1 --branch "${FLUTTER_VERSION}" https://github.com/flutter/flutter.git /opt/flutter && git config --system --add safe.directory /opt/flutter && chmod -R a+rwX /opt/flutter |
| RUN flutter config --no-analytics --enable-linux-desktop --no-enable-android --no-enable-ios --no-enable-web --no-enable-macos-desktop --no-enable-windows-desktop && flutter --version && find /opt/flutter -not -perm -o=w -exec chmod a+rwX {} + |
| RUN TAR_OPTIONS=--no-same-owner flutter precache --linux --no-android --no-ios --no-web --no-macos --no-windows --no-fuchsia && rm -rf /opt/flutter/bin/cache/artifacts/engine/android-* /opt/flutter/bin/cache/downloads && find /opt/flutter -not -perm -o=w -exec chmod a+rwX {} + && du -sh /opt/flutter /opt/flutter/bin/cache |
| RUN curl -fsSL "https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.xz" -o /tmp/node.tar.xz && echo "${NODE_SHA256} /tmp/node.tar.xz" | sha256sum -c - && mkdir -p /opt/node && tar -xJf /tmp/node.tar.xz -C /opt/node --strip-components=1 && rm /tmp/node.tar.xz && ln -s /opt/node/bin/node /usr/local/bin/node && node --version |
| COPY pubspec.yaml pubspec.lock LICENSE /opt/cadence-src/ |
| COPY daemon/pubspec.yaml /opt/cadence-src/daemon/ |
| COPY packages/media/pubspec.yaml /opt/cadence-src/packages/media/ |
| COPY packages/client /opt/cadence-src/packages/client |
| COPY tool /opt/cadence-src/tool |
| RUN cd /opt/cadence-src && dart pub get --enforce-lockfile && dart compile exe tool/bin/cadence.dart -o /usr/local/bin/cadence && cd / && rm -rf /opt/cadence-src && chmod -R a+rwX /opt/pub-cache && cadence --help >/dev/null |
Details
2026-09-10 16:10:31 -04:00
Versions (5)
View all
Container
4
OCI / Docker
linux/amd64
1.8 GiB
3d65c9ce3d54
2026-09-10
6be8e89037d1
2026-09-10
f192efa49312
2026-09-10
32a1606b4137
2026-09-10
f30066b33509
2026-09-10