docker-base-distro/melange/flutter-sdk.melange.yaml
Mathias Beaulieu-Duncan 734939fd12 Initial base distro with apko/Wolfi configs
Five minimal OCI image variants built with apko:
- base: ~5.5MB glibc runtime (wolfi-baselayout, libstdc++, ca-certs, tzdata)
- build: base + build tools (bash, git, curl, wget, unzip, xz)
- dotnet-runtime: base + ICU, OpenSSL, zlib for .NET runtime
- dotnet-sdk: build + ICU, OpenSSL, zlib for .NET SDK
- flutter: build variant configured for Flutter SDK

Includes melange package definitions for .NET 10 SDK/runtime and
Flutter SDK (for future use when building custom APKs).

CI/CD pipelines: publish on release, Scout CVE comparison on PRs,
weekly rebuild for Wolfi security patches.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 02:32:32 -05:00

49 lines
1.4 KiB
YAML

package:
name: flutter-sdk
version: 3.38.9
epoch: 0
description: "Flutter SDK for web/WASM builds"
copyright:
- license: BSD-3-Clause
environment:
contents:
keyring:
- https://packages.wolfi.dev/os/wolfi-signing.rsa.pub
repositories:
- https://packages.wolfi.dev/os
packages:
- wolfi-baselayout
- busybox
- curl
- git
- xz
pipeline:
- runs: |
FLUTTER_VERSION="${{package.version}}"
# Download Flutter SDK tarball (linux x86_64 only for now)
curl -fsSL "https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_${FLUTTER_VERSION}-stable.tar.xz" \
-o /tmp/flutter.tar.xz
# Install to package destination
mkdir -p "${{targets.destdir}}/opt"
tar xf /tmp/flutter.tar.xz -C "${{targets.destdir}}/opt"
# Mark git safe directory
git config --global --add safe.directory /opt/flutter
# Configure for web-only
"${{targets.destdir}}/opt/flutter/bin/flutter" config --enable-web \
--no-enable-android --no-enable-ios \
--no-enable-linux-desktop --no-enable-macos-desktop \
--no-enable-windows-desktop
# Precache web artifacts
"${{targets.destdir}}/opt/flutter/bin/flutter" precache --web \
--no-android --no-ios --no-linux \
--no-macos --no-windows --no-fuchsia --no-universal
rm /tmp/flutter.tar.xz