Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
smilelikeshit committed Feb 22, 2020
1 parent 6b2531c commit a2575a8
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions v1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ RUN apt-get update && apt install $JAVA_VERSION git curl wget -y

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


# nvm environment variables
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
Expand All @@ -34,19 +32,13 @@ RUN wget https://dl.min.io/client/mc/release/linux-amd64/mc && chmod +x mc && mv
RUN npm install -g bower
RUN echo '{ "allow_root": true }' > /root/.bowerrc

RUN wget --no-verbose -O /tmp/apache-maven-3.3.9-bin.tar.gz http://www-eu.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz && \
tar xzf /tmp/apache-maven-3.3.9-bin.tar.gz -C $HOME_USER && \
ln -s /opt/apache-maven-3.3.9 /opt/maven && \
ln -s /opt/maven/bin/mvn /usr/local/bin && \
rm -f /tmp/apache-maven-3.3.9-bin.tar.gz
RUN wget --no-verbose -O /tmp/apache-maven-3.3.9-bin.tar.gz http://www-eu.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz \
&& tar xzf /tmp/apache-maven-3.3.9-bin.tar.gz -C /opt/ \
&& ln -s /opt/apache-maven-3.3.9 /opt/maven \
&& ln -s /opt/maven/bin/mvn /usr/local/bin \
&& rm -f /tmp/apache-maven-3.3.9-bin.tar.gz

RUN apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

ENV MAVEN_HOME /opt/maven






0 comments on commit a2575a8

Please sign in to comment.