-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathDockerfile
33 lines (22 loc) · 978 Bytes
/
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
FROM ubuntu:16.04 AS devenv
WORKDIR /root
MAINTAINER Gonzalo Larralde <[email protected]>
ADD util/prepare_environment/*.sh ./
ADD prefetched ./prefetched
COPY util/thin_image/environment-profile.sh /etc/profile.d/010-environment-profile.sh
RUN /bin/bash -e 010_install_dependencies.sh
RUN /bin/bash -e 020_install_ndk.sh
RUN /bin/bash -e 030_build_libiconv_libicu.sh
RUN /bin/bash -e 040_clone_last_swift.sh
RUN /bin/bash -e 050_build_swift_android.sh
RUN /bin/bash -e 060_build_corelibs_libdispatch.sh
RUN /bin/bash -e 070_build_corelibs_foundation.sh
CMD /bin/bash -l
FROM ubuntu:16.04 AS env
WORKDIR /root
COPY --from=devenv /root/swift-install /root/swift-install/
COPY --from=devenv /root/android-standalone-toolchain /root/android-standalone-toolchain/
COPY --from=devenv /etc/profile.d/010-environment-profile.sh /etc/profile.d/
ADD util/prepare_environment/010_install_dependencies.sh ./
RUN /bin/bash -e 010_install_dependencies.sh
CMD /bin/bash -l