-
-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathDockerfile
More file actions
17 lines (13 loc) · 737 Bytes
/
Copy pathDockerfile
File metadata and controls
17 lines (13 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM mobiledevops/android-sdk-image:36.1.0
ENV FLUTTER_VERSION="3.44.4"
ENV FLUTTER_HOME="/home/mobiledevops/.flutter-sdk"
ENV PATH="$PATH:$FLUTTER_HOME/bin"
# Download and extract Flutter SDK
RUN mkdir $FLUTTER_HOME \
&& cd $FLUTTER_HOME \
&& curl --fail --remote-time --silent --location -O https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_${FLUTTER_VERSION}-stable.tar.xz \
&& tar xf flutter_linux_${FLUTTER_VERSION}-stable.tar.xz --strip-components=1 \
&& rm flutter_linux_${FLUTTER_VERSION}-stable.tar.xz
# Git safe.directory for the extracted SDK (required since git 2.35+ ownership checks)
RUN git config --global --add safe.directory $FLUTTER_HOME
RUN flutter precache