-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (26 loc) · 1.21 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
FROM circleci/clojure:openjdk-8-lein-2.9.1-node
MAINTAINER Viktor Eriksson <[email protected]>
# Insall nvm and upgrade to latest node
ENV NODE_VERSION=12.13.0
ENV HOME="/home/circleci"
ENV NVM_DIR="$HOME/.nvm"
RUN mkdir $NVM_DIR
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
RUN echo ". $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& nvm use default" | bash
RUN sudo npm i npm@latest -g
RUN sudo npm install -g [email protected] --unsafe-perm
ENV PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:${PATH}"
ENV PATH="/home/circleci/android-sdk/tools/bin:${PATH}"
ENV ANDROID_HOME="/home/circleci/android-sdk"
RUN mkdir -p /home/circleci/android-sdk && cd /home/circleci/android-sdk && \
wget -q https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip && \
unzip *tools*linux*.zip && \
rm *tools*linux*.zip
RUN yes | sdkmanager "build-tools;28.0.3"
RUN yes | sdkmanager "ndk-bundle"
RUN sudo apt-get install ninja-build
# Install clojure cli utilities
RUN curl -O https://download.clojure.org/install/linux-install-1.10.1.483.sh && chmod +x linux-install-1.10.1.483.sh && sudo ./linux-install-1.10.1.483.sh