diff --git a/v1/Dockerfile b/v1/Dockerfile index 810c7e0..d523175 100644 --- a/v1/Dockerfile +++ b/v1/Dockerfile @@ -31,7 +31,11 @@ RUN npm install -g bower RUN cd /opt/ && wget http://www-eu.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz \ && tar -xvzf apache-maven-3.3.9-bin.tar.gz \ && mv apache-maven-3.3.9 maven -RUN export M2_HOME=/opt/maven && export PATH=${M2_HOME}/bin:${PATH} +RUN echo "export M2_HOME=/opt/maven" > /etc/profile.d/maven.sh \ + && export PATH=${M2_HOME}/bin:${PATH} >> /etc/profile.d/maven.sh \ + && chmod +x /etc/profile.d/maven.sh \ + && source chmod +x /etc/profile.d/maven.sh + RUN mvn --version