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:
18
Dockerfile
18
Dockerfile
@ -4,18 +4,17 @@ RUN groupadd -g 281 docker
|
||||
RUN usermod -aG docker jenkins
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y\
|
||||
ca-certificates \
|
||||
curl \
|
||||
gnupg
|
||||
RUN apt-get install -y ca-certificates \
|
||||
curl \
|
||||
gnupg
|
||||
|
||||
RUN mkdir -m 0755 -p /etc/apt/keyrings
|
||||
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
||||
|
||||
RUN echo \
|
||||
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
|
||||
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
|
||||
tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||
"$(. /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
|
||||
@ -26,8 +25,7 @@ RUN apt-get install -y docker-ce-cli
|
||||
# RUN cd tea && make && make install
|
||||
|
||||
# Install flutter
|
||||
RUN apt-get install -y\
|
||||
curl git wget \
|
||||
RUN apt-get install -y curl git wget \
|
||||
unzip libgconf-2-4 gdb \
|
||||
libstdc++6 libglu1-mesa fonts-droid-fallback \
|
||||
lib32stdc++6 python3 sed
|
||||
@ -48,7 +46,7 @@ RUN flutter channel master
|
||||
RUN flutter upgrade
|
||||
|
||||
RUN dart pub global activate flutter_distributor
|
||||
RUN echo 'export PATH="$PATH:`dart pub global path`"' >> ~/.bashrc
|
||||
RUN echo 'export PATH="$PATH:`dart pub global path`"' >>~/.bashrc
|
||||
|
||||
USER root
|
||||
|
||||
@ -57,4 +55,4 @@ RUN apt-get install -y openssl
|
||||
|
||||
#Install git lfs
|
||||
RUN apt-get install -y git-lfs
|
||||
RUN git lfs install --system
|
||||
RUN git lfs install --system
|
||||
|
Reference in New Issue
Block a user