-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (19 loc) · 1.05 KB
/
Dockerfile
File metadata and controls
30 lines (19 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM circleci/android:api-29-node
USER root
RUN mkdir -p /opt
RUN curl -L https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_v1.12.13+hotfix.7-stable.tar.xz --output /tmp/flutter.tar.xz && \
curl -L https://services.gradle.org/distributions/gradle-6.1.1-bin.zip --output /tmp/gradle-6.1.1-bin.zip && \
curl -L https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v1.78.0/pact-1.78.0-linux-x86_64.tar.gz --output /tmp/pact-1.78.0-linux-x86_64.tar.gz && \
tar -C /opt -xf /tmp/flutter.tar.xz && rm /tmp/flutter.tar.xz && \
unzip /tmp/gradle-6.1.1-bin.zip -d /opt && rm /tmp/gradle-6.1.1-bin.zip && \
tar -C /opt -xf /tmp/pact-1.78.0-linux-x86_64.tar.gz && rm /tmp/pact-1.78.0-linux-x86_64.tar.gz && \
gem install fastlane -NV && \
chmod -R a+rw /opt && \
chmod -R a+rw /home/circleci
ENV PACT /opt/pact
ENV FLUTTER_HOME /opt/flutter
ENV GRADLE_HOME /opt/gradle-6.1.1
ENV PATH $PATH:$FLUTTER_HOME/bin:$GRADLE_HOME/bin:$PACT/bin
RUN flutter precache
RUN flutter doctor
RUN gradle --version