Install flutter from source since apk doesn't work
Some checks failed
andreas-personal/jenkins-ssh-docker-agent/pipeline/head There was a failure building this commit

This commit is contained in:
Andreas Fahrecker 2024-04-16 01:07:30 +02:00
parent a56f0a86e1
commit 5d4415b9a1
2 changed files with 5 additions and 4 deletions

View File

@ -17,7 +17,6 @@ RUN echo \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
tee /etc/apt/sources.list.d/docker.list > /dev/null
RUN apt-get update
RUN apt-get install -y docker-ce-cli
# Install tea
@ -26,7 +25,6 @@ RUN git clone https://gitea.com/gitea/tea.git
RUN cd tea && make && make install
# Install flutter
RUN apt-get update
RUN apt-get install -y\
curl git wget \
unzip libgconf-2-4 gdb \
@ -51,5 +49,4 @@ RUN flutter upgrade
USER root
#Install OpenSSL
RUN apt-get update
RUN apt-get install -y openssl

View File

@ -9,8 +9,12 @@ RUN apk add --no-cache docker docker-compose
RUN apk add --no-cache tea
# Install flutter
RUN apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing flutter
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}"
RUN chown -R jenkins:jenkins /usr/local/flutter
# Run flutter doctor and upgrade
USER jenkins