From 6eca980c68793021c568ff9e1e6874cfa6f08306 Mon Sep 17 00:00:00 2001 From: Andreas Fahrecker Date: Tue, 12 Mar 2024 18:17:46 +0100 Subject: [PATCH] Added Flutter to non alpine-image --- Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Dockerfile b/Dockerfile index e8aca6f..a859cc3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,5 +23,21 @@ RUN apt-get install -y docker-ce-cli COPY --chown=jenkins:jenkins executors.groovy /usr/share/jenkins/ref/init.groovy.d/executors.groovy +# Install flutter +RUN apt update +RUN apt install -y curl git wget unzip libgconf-2-4 gdb libstdc++6 libglu1-mesa fonts-droid-fallback lib32stdc++6 python3 sed +RUN apt clean + +RUN git clone https://github.com/flutter/flutter.git /usr/local/flutter +RUN git config --global --add safe.directory /usr/local/flutter + +ENV PATH="/usr/local/flutter/bin:/usr/local/flutter/bin/cache/dart-sdk/bin:${PATH}" + +# Install jenkins plugins USER jenkins RUN jenkins-plugin-cli --plugins "blueocean docker-workflow" + +# Run flutter upgrade +RUN flutter doctor -v +RUN flutter channel master +RUN flutter upgrade \ No newline at end of file