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:
2024-04-16 01:07:30 +02:00
parent a56f0a86e1
commit 5d4415b9a1
2 changed files with 5 additions and 4 deletions

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