mirror of
https://github.com/gmeligio/flutter-docker-image.git
synced 2026-05-24 12:30:34 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0d25c577cb | |||
| c569ba7b0c | |||
| ba9ff36db0 | |||
| 4cddcea7b4 |
@@ -26,7 +26,7 @@
|
||||
"^Dockerfile$"
|
||||
],
|
||||
"matchStrings": [
|
||||
"#\\s*renovate:\\s*release=(?<release>.*?) depName=(?<depName>.*?)\\sARG .*?_VERSION=\"(?<currentValue>.*)\"\\s"
|
||||
"#\\s*renovate:\\s*suite=(?<suite>.*?) depName=(?<depName>.*?)\\sARG .*?_VERSION=\"(?<currentValue>.*)\"\\s"
|
||||
],
|
||||
"registryUrlTemplate": "https://deb.debian.org/debian?{{#if release }}release={{release}}{{else}}suite=stable{{/if}}&components=main,contrib,non-free&binaryArch=amd64",
|
||||
"datasourceTemplate": "deb"
|
||||
|
||||
+22
-18
@@ -1,19 +1,19 @@
|
||||
FROM debian:12.12-slim@sha256:acd98e6cfc42813a4db9ca54ed79b6f702830bfc2fa43a2c2e87517371d82edb AS flutter
|
||||
FROM debian:13.1-slim@sha256:c2880112cc5c61e1200c26f106e4123627b49726375eb5846313da9cca117337 AS flutter
|
||||
|
||||
SHELL ["/bin/bash", "-euxo", "pipefail", "-c"]
|
||||
|
||||
ENV LANG=C.UTF-8
|
||||
|
||||
# renovate: release=bullseye depName=curl
|
||||
ARG CURL_VERSION="7.88.1-10+deb12u14"
|
||||
# renovate: release=bullseye depName=git
|
||||
ARG GIT_VERSION="1:2.39.5-0+deb12u2"
|
||||
# renovate: release=bullseye depName=lcov
|
||||
ARG LCOV_VERSION="1.16-1"
|
||||
# renovate: release=bullseye depName=ca-certificates
|
||||
ARG CA_CERTIFICATES_VERSION="20230311+deb12u1"
|
||||
# renovate: release=bullseye depName=unzip
|
||||
ARG UNZIP_VERSION="6.0-28"
|
||||
# renovate: suite=trixie depName=curl
|
||||
ARG CURL_VERSION="8.14.1-2"
|
||||
# renovate: suite=trixie depName=git
|
||||
ARG GIT_VERSION="1:2.47.3-0+deb13u1"
|
||||
# renovate: suite=trixie depName=lcov
|
||||
ARG LCOV_VERSION="2.3.1-1"
|
||||
# renovate: suite=trixie depName=ca-certificates
|
||||
ARG CA_CERTIFICATES_VERSION="20250419"
|
||||
# renovate: suite=trixie depName=unzip
|
||||
ARG UNZIP_VERSION="6.0-29"
|
||||
|
||||
USER root
|
||||
RUN apt-get update \
|
||||
@@ -93,10 +93,10 @@ FROM flutter AS fastlane
|
||||
|
||||
SHELL ["/bin/bash", "-euxo", "pipefail", "-c"]
|
||||
|
||||
# renovate: release=bullseye depName=ruby-dev
|
||||
ARG RUBY_VERSION="1:3.1"
|
||||
# renovate: release=bullseye depName=build-essential
|
||||
ENV BUILD_ESSENTIAL_VERSION="12.9"
|
||||
# renovate: suite=trixie depName=ruby-dev
|
||||
ARG RUBY_VERSION="1:3.3"
|
||||
# renovate: suite=trixie depName=build-essential
|
||||
ENV BUILD_ESSENTIAL_VERSION="12.12"
|
||||
|
||||
USER root
|
||||
RUN apt-get update \
|
||||
@@ -149,12 +149,14 @@ ENV ANDROID_HOME="$SDK_ROOT/android-sdk" \
|
||||
JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
|
||||
ENV PATH="$PATH:$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/platform-tools:$HOME/.local/bin"
|
||||
|
||||
# renovate: release=bullseye depName=openjdk-17-jdk-headless
|
||||
# renovate: suite=bookworm depName=openjdk-17-jdk-headless
|
||||
ARG OPENJDK_17_JDK_HEADLESS_VERSION="17.0.16+8-1~deb12u1"
|
||||
# renovate: release=bullseye depName=sudo
|
||||
ARG SUDO_VERSION="1.9.13p3-1+deb12u2"
|
||||
# renovate: suite=trixie depName=sudo
|
||||
ARG SUDO_VERSION="1.9.16p2-3"
|
||||
|
||||
USER root
|
||||
# Add debian 12 bookworm repository alongside debian 13 trixie to install Java 17
|
||||
COPY config/debian_12_bookworm.sources /etc/apt/sources.list.d/debian_12_bookworm.sources
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
# For Android x86 emulators
|
||||
@@ -172,6 +174,8 @@ RUN apt-get update \
|
||||
# To allow changing ownership in GitLab CI /builds
|
||||
sudo="$SUDO_VERSION" \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
# Delete debian 12 bookworm repository after installing Java 17
|
||||
&& rm /etc/apt/sources.list.d/debian_12_bookworm.sources \
|
||||
# To allow changing ownership in GitLab CI /builds
|
||||
&& echo "flutter ALL= NOPASSWD:/bin/chown -R flutter /builds, /bin/chown -R flutter /builds/*" >> /etc/sudoers.d/flutter
|
||||
|
||||
|
||||
@@ -2,6 +2,12 @@
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
## [3.35.5] - 2025-09-30
|
||||
|
||||
### ⚙️ Miscellaneous Tasks
|
||||
|
||||
- *(release)* Upgrade flutter to 3.35.5 (#383)
|
||||
|
||||
## [3.35.4] - 2025-09-20
|
||||
|
||||
### ⚙️ Miscellaneous Tasks
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
# Add debian 12 bookworm repository alongside debian 13 trixie to install Java 17
|
||||
|
||||
Types: deb
|
||||
URIs: http://deb.debian.org/debian
|
||||
Suites: bookworm bookworm-updates
|
||||
Components: main contrib non-free non-free-firmware
|
||||
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
|
||||
|
||||
Types: deb
|
||||
URIs: http://deb.debian.org/debian-security
|
||||
Suites: bookworm-security
|
||||
Components: main contrib non-free non-free-firmware
|
||||
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"flutter": {
|
||||
"channel": "stable",
|
||||
"commit": "d693b4b9dbac2acd4477aea4555ca6dcbea44ba2",
|
||||
"version": "3.35.4"
|
||||
"commit": "ac4e799d237041cf905519190471f657b657155a",
|
||||
"version": "3.35.5"
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"flutter": {
|
||||
"channel": "stable",
|
||||
"commit": "d693b4b9dbac2acd4477aea4555ca6dcbea44ba2",
|
||||
"version": "3.35.4"
|
||||
"commit": "ac4e799d237041cf905519190471f657b657155a",
|
||||
"version": "3.35.5"
|
||||
},
|
||||
"android": {
|
||||
"platforms": [
|
||||
|
||||
@@ -23,7 +23,7 @@ The images includes the minimum tools to run Flutter and build apps. The version
|
||||
|
||||
## Features
|
||||
|
||||
* Installed Flutter SDK 3.35.4.
|
||||
* Installed Flutter SDK 3.35.5.
|
||||
* Analytics disabled by default, opt-in if `ENABLE_ANALYTICS` environment variable is passed when running the container.
|
||||
* Rootless user `flutter:flutter`, with permissions to run on Github workflows and GitLab CI.
|
||||
* Cached Fastlane gem 2.228.0.
|
||||
@@ -40,15 +40,15 @@ Predownloaded SDKs and tools in Android:
|
||||
|
||||
| Registry | flutter-android |
|
||||
| ------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
|
||||
| Docker Hub | [gmeligio/flutter-android:3.35.4](https://hub.docker.com/r/gmeligio/flutter-android) |
|
||||
| GitHub Container Registry | [ghcr.io/gmeligio/flutter-android:3.35.4](https://github.com/gmeligio/flutter-docker-image/pkgs/container/flutter-android) |
|
||||
| Quay | [quay.io/gmeligio/flutter-android:3.35.4](https://quay.io/repository/gmeligio/flutter-android) |
|
||||
| Docker Hub | [gmeligio/flutter-android:3.35.5](https://hub.docker.com/r/gmeligio/flutter-android) |
|
||||
| GitHub Container Registry | [ghcr.io/gmeligio/flutter-android:3.35.5](https://github.com/gmeligio/flutter-docker-image/pkgs/container/flutter-android) |
|
||||
| Quay | [quay.io/gmeligio/flutter-android:3.35.5](https://quay.io/repository/gmeligio/flutter-android) |
|
||||
|
||||
On the terminal:
|
||||
|
||||
```bash
|
||||
# From GitHub Container Registry
|
||||
docker run --rm -it ghcr.io/gmeligio/flutter-android:3.35.4 bash
|
||||
docker run --rm -it ghcr.io/gmeligio/flutter-android:3.35.5 bash
|
||||
```
|
||||
|
||||
On a workflow in GitHub Actions:
|
||||
@@ -58,7 +58,7 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-22.04
|
||||
container:
|
||||
image: ghcr.io/gmeligio/flutter-android:3.35.4
|
||||
image: ghcr.io/gmeligio/flutter-android:3.35.5
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
@@ -70,7 +70,7 @@ On a `.gitlab-ci.yml` in GitLab CI:
|
||||
|
||||
```yaml
|
||||
build:
|
||||
image: ghcr.io/gmeligio/flutter-android:3.35.4
|
||||
image: ghcr.io/gmeligio/flutter-android:3.35.5
|
||||
script:
|
||||
- flutter build apk
|
||||
```
|
||||
@@ -91,20 +91,20 @@ bundle exec fastlane
|
||||
|
||||
Every new tag on the flutter stable channel gets built. The tag is composed of the Flutter version used to build the image:
|
||||
|
||||
* Docker image: gmeligio/flutter-android:3.35.4
|
||||
* Flutter version: 3.35.4
|
||||
* Docker image: gmeligio/flutter-android:3.35.5
|
||||
* Flutter version: 3.35.5
|
||||
|
||||
## Building Locally
|
||||
|
||||
The android.Dockerfile expects a few arguments:
|
||||
|
||||
* `flutter_version <string>`: The version of Flutter to use when building. Example: 3.35.4
|
||||
* `flutter_version <string>`: The version of Flutter to use when building. Example: 3.35.5
|
||||
* `android_build_tools_version <string>`: The version of the Android SDK Build Tools to install. Example: 35.0.0
|
||||
* `android_platform_versions <list>`: The versions of the Android SDK Platforms to install, separated by spaces. Example: 36
|
||||
|
||||
```bash
|
||||
# Android
|
||||
docker build --target android --build-arg flutter_version=3.35.4 --build-arg fastlane_version=2.228.0 --build-arg android_build_tools_version=35.0.0 --build-arg android_platform_versions="36" -t android-test .
|
||||
docker build --target android --build-arg flutter_version=3.35.5 --build-arg fastlane_version=2.228.0 --build-arg android_build_tools_version=35.0.0 --build-arg android_platform_versions="36" -t android-test .
|
||||
```
|
||||
|
||||
## Roadmap
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
# escape=`
|
||||
|
||||
FROM mcr.microsoft.com/windows/servercore:ltsc2025@sha256:570916ae0393ca7784819b7ab17776b958ca702922c56dda1ae4e0eaadcac57f as flutter
|
||||
FROM mcr.microsoft.com/windows/servercore:ltsc2025@sha256:25d131d0402e42725989569a1301504d56e0d786cefef33709dcc6c78d7845df as flutter
|
||||
|
||||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user