init maven subsystem in docker
This commit is contained in:
parent
3edcc4e09d
commit
bb419be5f4
@ -9,6 +9,11 @@ COPY target/mavor.war /usr/local/tomcat/webapps/ROOT.war
|
|||||||
# create temporary directory, no need to be a volume
|
# create temporary directory, no need to be a volume
|
||||||
RUN mkdir /mavor
|
RUN mkdir /mavor
|
||||||
|
|
||||||
|
# this mvn command fails but is intended to fail
|
||||||
|
# it just initializes maven subsystem so the first
|
||||||
|
# download on the website is faster
|
||||||
|
RUN /usr/bin/mvn dependency:copy-dependencies || echo "maven init done. fail is intended"
|
||||||
|
|
||||||
# set required ENV
|
# set required ENV
|
||||||
ENV MAVOR_MAVEN_EXECUTABLE="/usr/bin/mvn"
|
ENV MAVOR_MAVEN_EXECUTABLE="/usr/bin/mvn"
|
||||||
ENV MAVOR_TEMP_DIR="/mavor"
|
ENV MAVOR_TEMP_DIR="/mavor"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user