diff --git a/Dockerfile b/Dockerfile index 19fc525..8bc677e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/alpine/Dockerfile b/alpine/Dockerfile index 5413f9e..de43a92 100644 --- a/alpine/Dockerfile +++ b/alpine/Dockerfile @@ -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