forked from cuisines/gitlab-ci-react-native-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (29 loc) · 1.29 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
#
# GitLab CI react-native-android v0.1
#
# https://hub.docker.com/r/webcuisine/gitlab-ci-react-native-android/
# https://github.com/cuisines/gitlab-ci-react-native-android
#
FROM jangrewe/gitlab-ci-android
MAINTAINER Sascha-Matthias Kulawik <sascha@kulawik.de>
RUN echo "Installing Yarn Deb Source" \
&& curl -sS http://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb http://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN echo "Installing Node.JS" \
&& curl -sL https://deb.nodesource.com/setup_7.x | bash -
ENV BUILD_PACKAGES git yarn nodejs build-essential imagemagick ruby ruby-dev wget libcurl4-openssl-dev
RUN echo "Installing Additional Libraries" \
&& rm -rf /var/lib/gems \
&& apt-get update && apt-get install $BUILD_PACKAGES -qqy --no-install-recommends
RUN echo "Installing Fastlane 2.57.2" \
&& gem install fastlane badge -N \
&& gem cleanup
ENV GRADLE_HOME /opt/gradle
ENV GRADLE_VERSION 3.3
RUN echo "Downloading Gradle" \
&& wget --no-verbose --output-document=gradle.zip "https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip"
RUN echo "Installing Gradle" \
&& unzip gradle.zip \
&& rm gradle.zip \
&& mv "gradle-${GRADLE_VERSION}" "${GRADLE_HOME}/" \
&& ln --symbolic "${GRADLE_HOME}/bin/gradle" /usr/bin/gradle