All checks were successful
Build and Push Flutter SDK Image / build-and-push (Flutter SDK for Linux desktop CI builds, Dockerfile.linux, linux) (release) Successful in 21m10s
Build and Push Flutter SDK Image / build-and-push (Flutter SDK for Android CI builds, Dockerfile.android, android) (release) Successful in 28m35s
Build and Push Flutter SDK Image / build-and-push (Minimal Flutter SDK for Web/WASM CI builds, Dockerfile, web) (release) Successful in 16m45s
Remove rav1e binary, library, and SBOM metadata to eliminate RUSTSEC-2024-0436 in the paste crate. rav1e (AV1 encoder) is not needed for Flutter Linux desktop development. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
45 lines
1.2 KiB
Docker
45 lines
1.2 KiB
Docker
FROM svrnty/base-distro:flutter-sdk-linux-latest
|
|
|
|
ARG FLUTTER_VERSION=3.38.9
|
|
|
|
LABEL org.opencontainers.image.title="flutter-sdk-linux"
|
|
LABEL org.opencontainers.image.description="Flutter SDK for Linux desktop CI builds"
|
|
LABEL org.opencontainers.image.version="${FLUTTER_VERSION}"
|
|
|
|
USER 0
|
|
|
|
# Remove rav1e to eliminate CVE in paste crate (not needed for Flutter)
|
|
RUN rm -f /usr/bin/rav1e /usr/lib/librav1e.so* /var/lib/db/sbom/rav1e-*.spdx.json
|
|
|
|
# Clone Flutter SDK from git (supports both amd64 and arm64)
|
|
RUN git clone --depth 1 --branch ${FLUTTER_VERSION} https://github.com/flutter/flutter.git /opt/flutter && \
|
|
git config --global --add safe.directory /opt/flutter && \
|
|
rm -rf /opt/flutter/dev /opt/flutter/examples
|
|
|
|
# Fix ownership before switching to flutter user
|
|
RUN chown -R 65532:65532 /opt/flutter
|
|
|
|
USER 65532
|
|
|
|
# Configure Flutter for Linux desktop only
|
|
RUN flutter config --enable-linux-desktop \
|
|
--no-enable-web \
|
|
--no-enable-android \
|
|
--no-enable-ios \
|
|
--no-enable-macos-desktop \
|
|
--no-enable-windows-desktop
|
|
|
|
# Precache only Linux artifacts
|
|
RUN flutter precache --linux \
|
|
--no-web \
|
|
--no-android \
|
|
--no-ios \
|
|
--no-macos \
|
|
--no-windows \
|
|
--no-fuchsia \
|
|
--no-universal
|
|
|
|
RUN flutter doctor -v
|
|
|
|
WORKDIR /app
|