Skip to content

Commit

Permalink
update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
smilelikeshit committed Feb 16, 2020
1 parent fda0cf7 commit 9ae3044
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions v1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM ubuntu:16.04

MAINTAINER [email protected]
ENV JAVA_VERSION openjdk-8-jdk

RUN apt-get update ** apt install $JAVA_VERSION

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

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

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

0 comments on commit 9ae3044

Please sign in to comment.