forked from cirruslabs/docker-images-flutter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
20 lines (16 loc) · 906 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Android API 29 with Java 8
FROM circleci/android@sha256:b6646fdf7457f61825526e7bfce364d8e533da6ceb1cdb98e371e94348ecc834
ARG flutter_version
ENV FLUTTER_HOME=${HOME}/flutter \
FLUTTER_ROOT=$FLUTTER_HOME \
FLUTTER_VERSION=$flutter_version
ENV PATH ${PATH}:${FLUTTER_HOME}/bin:${FLUTTER_HOME}/bin/cache/dart-sdk/bin
# sdkmanager actions related to https://github.com/flutter/flutter/issues/90579
RUN git clone --depth=1 --branch ${FLUTTER_VERSION} https://github.com/flutter/flutter.git ${FLUTTER_HOME} && \
${ANDROID_HOME}/tools/bin/sdkmanager "platform-tools" && \
${ANDROID_HOME}/tools/bin/sdkmanager "build-tools;29.0.2" && \
${ANDROID_HOME}/tools/bin/sdkmanager "platforms;android-29" && \
${ANDROID_HOME}/tools/bin/sdkmanager "platform-tools" && \
${ANDROID_HOME}/tools/bin/sdkmanager "cmdline-tools;latest" && \
yes "y" | flutter doctor --android-licenses && \
flutter doctor