-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
41 lines (32 loc) · 1.09 KB
/
Dockerfile
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
30
31
32
33
34
35
36
37
38
39
40
41
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get upgrade -y
RUN apt-get install gcc -y
RUN apt-get install make -y
RUN apt-get install g++ -y
RUN apt-get install build-essential -y
RUN apt-get install ruby ruby-dev gem -y
RUN apt-get install libglu1-mesa -y
RUN apt-get install openjdk-8-jdk -y
RUN apt-get install git -y
RUN gem install bundler -NV
RUN gem install fastlane -NV
# copy stuff
COPY downloads/ /downloads
COPY flutter-sdk/ /flutter-sdk
# extract stuff
RUN cd /flutter-sdk/android-sdk;\
unzip /downloads/android-sdk.zip;\
rm /downloads/android-sdk.zip;\
mkdir tmp;\
mv cmdline-tools tmp/latest;\
mv tmp cmdline-tools
RUN cd /flutter-sdk;\
tar -xvf /downloads/flutter-sdk.tar.xz;\
rm /downloads/flutter-sdk.tar.xz
ENV FLUTTER_HOME=/flutter-sdk/flutter
ENV ANDROID_SDK_ROOT=/flutter-sdk/android-sdk
ENV PATH=$PATH:$FLUTTER_HOME/bin:$ANDROID_HOME/tools:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin
RUN yes | sdkmanager --licenses
RUN sdkmanager 'platforms;android-29' 'build-tools;29.0.3'
RUN sdkmanager --update