forked from carlosmuvi/test-android-ci
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
31 lines (24 loc) · 831 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
FROM circleci/android:api-30-ndk
USER root
# Skip checking SSH host keys.
RUN mkdir /root/.ssh && chmod 700 /root/.ssh
RUN /bin/echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> /root/.ssh/config
# Install Node
RUN apt-get install -y curl \
&& curl -sL https://deb.nodesource.com/setup_9.x | bash - \
&& apt-get install -y nodejs \
&& curl -L https://www.npmjs.com/install.sh | sh
# Download and install Gradle
RUN \
cd /usr/local && \
curl -L https://services.gradle.org/distributions/gradle-7.2-all.zip -o gradle-7.2-all.zip && \
unzip gradle-7.2-all.zip && \
rm gradle-7.2-all.zip
# Export some environment variables
ENV GRADLE_HOME=/usr/local/gradle-7.2
ENV PATH=$PATH:$GRADLE_HOME/bin
# install Firebase CLI
RUN npm install -g firebase-tools
COPY Gemfile* ./
RUN bundle install
RUN bundle update