Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
smilelikeshit committed Feb 16, 2020
1 parent a61aa39 commit 01b0316
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions v1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,29 @@ RUN apt-get update && apt install $JAVA_VERSION git curl -y

RUN rm /bin/sh && ln -s /bin/bash /bin/sh

WORKDIR /root

# nvm environment variables
ENV NVM_DIR /root/nvm
ENV NVM_DIR /usr/local/nvm
ENV NODE_VERSION 12.13.1


RUN curl --silent -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.2/install.sh | bash

# install node and npm
RUN source $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias kinnara-default $NODE_VERSION \
&& nvm use kinnara-default
&& nvm alias default $NODE_VERSION \
&& nvm use default

# add node and npm to path so the commands are available
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH

# confirm installation
RUN node -v && npm -v

RUN npm install -g bower

RUN if ! [ -e apache-maven-3.3.3-bin.tar.gz ]; then (curl -OL http://mirror.olnevhost.net/pub/apache/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz); fi
RUN tar -zxf apache-maven-3.3.3-bin.tar.gz -C /usr/local/
RUN ln -s /usr/local/apache-maven-3.3.3/bin/mvn /usr/bin/mvn
RUN node -v && npm -v && java --version && mvn -v
RUN java --version && mvn -v
RUN apt-get --purge autoremove -y && rm -rf /var/lib/apt/list/*

0 comments on commit 01b0316

Please sign in to comment.