fix: 💚 Fix Flutter build on alpine image, and AutoFormatter for Dockerfile, and vscode workspace
Some checks failed
andreas-personal/jenkins-ssh-docker-agent/pipeline/head There was a failure building this commit
Some checks failed
andreas-personal/jenkins-ssh-docker-agent/pipeline/head There was a failure building this commit
This commit is contained in:
@ -8,8 +8,18 @@ RUN apk add --no-cache docker docker-compose
|
||||
# Install tea
|
||||
RUN apk add --no-cache tea
|
||||
|
||||
# Install glibc compatibility for Flutter/Dart
|
||||
RUN apk --no-cache add ca-certificates wget
|
||||
RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub
|
||||
RUN wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.34-r0/glibc-2.34-r0.apk
|
||||
RUN apk add --force-overwrite glibc-2.34-r0.apk
|
||||
RUN rm glibc-2.34-r0.apk
|
||||
|
||||
# Install flutter dependencies
|
||||
RUN apk --no-cache add bash curl git unzip libstdc++
|
||||
|
||||
# Install flutter
|
||||
RUN apk --no-cache add bash curl git ca-certificates wget unzip
|
||||
RUN apk --no-cache add bash curl git ca-certificates wget unzip
|
||||
RUN git clone https://github.com/flutter/flutter.git /usr/local/flutter
|
||||
RUN git config --global --add safe.directory /usr/local/flutter
|
||||
|
||||
@ -25,7 +35,7 @@ RUN flutter channel master
|
||||
RUN flutter upgrade
|
||||
|
||||
RUN dart pub global activate flutter_distributor
|
||||
RUN echo 'export PATH="$PATH:`dart pub global path`"' >> /etc/profile
|
||||
RUN echo 'export PATH="$PATH:`dart pub global path`"' >>/etc/profile
|
||||
|
||||
USER root
|
||||
|
||||
@ -34,4 +44,4 @@ RUN apk add --no-cache openssl
|
||||
|
||||
#Install git lfs
|
||||
RUN apk add --no-cache git-lfs
|
||||
RUN git lfs install --system
|
||||
RUN git lfs install --system
|
||||
|
Reference in New Issue
Block a user