Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • docker-images/flutter/flutter-android
1 result
Show changes
Commits on Source (13)
include:
- project: docker-images/templates
ref: master
file: images.gitlab-ci.yml
file: docker_hub.gitlab-ci.yml
build:
extends: .build_image_job_template
variables:
DOCKER_BUILDX_PLATFORMS: linux/amd64
IMAGE_NAME: $IMAGE_SERVER/flutter:3.24.0-android
TAG_SUFFIX: android
IMAGE_BASENAME: ${IMAGE_PREFIX}/flutter
IMAGE_NAME: ${IMAGE_BASENAME}:3.24.5-${TAG_SUFFIX},${IMAGE_BASENAME}:3.24-${TAG_SUFFIX},${IMAGE_BASENAME}:3-${TAG_SUFFIX}
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "docker build",
"command": "docker",
"args": [
"build",
"."
]
}
]
}
ARG IMAGE_SERVER="registry.420joos.dev"
ARG DEPENDENCY_DIR="/tmp/dependencies"
ARG ANDROID_HOME="/opt/android"
FROM $IMAGE_SERVER/ubuntu:22.04 AS download
FROM ubuntu:24.04 AS download
ARG DEPENDENCY_DIR
ARG ANDROID_HOME
......@@ -22,12 +21,10 @@ RUN apt update \
&& mkdir -p $TMP_DEPENDENCIES_DIR \
&& wget "https://dl.google.com/android/repository/commandlinetools-linux-${CMDLINETOOLS_VERSION}_latest.zip" -O $CMDLINETOOLS_ZIP \
&& unzip -q $CMDLINETOOLS_ZIP -d $TMP_DIR \
&& mv $TMP_DIR/cmdline-tools/* $CMDLINETOOLS_DIR \
&& mkdir -p ${APP_DIR} \
&& wget "https://github.com/google/bundletool/releases/download/${BUNDLETOOL_VERSION}/bundletool-all-${BUNDLETOOL_VERSION}.jar" -O ${BUNDLETOOL_FILE}
&& mv $TMP_DIR/cmdline-tools/* $CMDLINETOOLS_DIR
FROM $IMAGE_SERVER/flutter:3.24.0
FROM andrijoos/flutter:3.24.5
ARG DEPENDENCY_DIR
ARG ANDROID_HOME
......@@ -37,9 +34,16 @@ ENV ANDROID_HOME=$ANDROID_HOME
COPY --from=download $DEPENDENCY_DIR /
RUN apk add --no-cache openjdk17-jdk \
USER root
RUN apk add --no-cache openjdk17-jdk libgcc \
&& rm -rf /tmp/* \
&& yes "y" | flutter doctor --android-licenses \
&& chown -R flutter:flutter ${ANDROID_HOME} \
&& chown -R flutter:flutter /tmp
USER flutter
RUN yes "y" | flutter doctor --android-licenses \
&& dart --disable-analytics \
&& flutter config --no-analytics --enable-android \
&& flutter precache --universal --android \
......@@ -50,4 +54,6 @@ RUN apk add --no-cache openjdk17-jdk \
# RUN cd warmup \
# && flutter pub get \
# && flutter build appbundle --release --target-platform android-arm,android-arm64,android-x64
# && flutter build appbundle --release --target-platform android-arm,android-arm64,android-x64 \
# && ls build/app/outputs/bundle/release/ \
# && exit 1