Skip to content

Commit 1a11549

Browse files
committed
✨ Add flutter support
1 parent 997f2ae commit 1a11549

3 files changed

Lines changed: 24 additions & 0 deletions

File tree

CHANGELOG.MD

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [v1.2.0] - 2021-07-12
8+
### Added
9+
- Add flutter dependencies
10+
711
## [v1.1.0] - 2021-07-12
812
### Added
913
- Add labels

Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,23 @@ RUN git clone https://github.com/danger/kotlin.git _danger-kotlin && \
9696
# setup environment variables
9797
ENV PATH=$PATH:/usr/local/kotlinc/bin
9898

99+
# flutter
100+
ENV FLUTTER_CHANNEL="stable"
101+
ENV FLUTTER_VERSION="2.2.1"
102+
ENV FLUTTER_URL="https://storage.googleapis.com/flutter_infra/releases/$FLUTTER_CHANNEL/linux/flutter_linux_$FLUTTER_VERSION-$FLUTTER_CHANNEL.tar.xz"
103+
ENV FLUTTER_HOME="/opt/flutter"
104+
105+
RUN curl -o flutter.tar.xz $FLUTTER_URL \
106+
&& mkdir -p $FLUTTER_HOME \
107+
&& tar xf flutter.tar.xz -C /opt \
108+
&& rm flutter.tar.xz
109+
110+
ENV PATH=$PATH:$FLUTTER_HOME/bin
111+
112+
RUN flutter config --no-analytics \
113+
&& flutter precache \
114+
&& yes "y" | flutter doctor --android-licenses \
115+
&& flutter doctor \
116+
&& flutter update-packages
117+
99118
VOLUME /root/.gradle

README.MD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ Contains:
88
- Latest 8 Android version SDKs + Platform CLI tools
99
- gcloud CLI tool
1010
- danger-kotlin
11+
- Flutter 2.2.3 binaries
1112

0 commit comments

Comments
 (0)