docker build file
This commit is contained in:
parent
ca48e5621b
commit
11d0a906b8
14
build/Dockerfile
Normal file
14
build/Dockerfile
Normal file
@ -0,0 +1,14 @@
|
||||
FROM tomcat:11
|
||||
|
||||
# install maven
|
||||
RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends maven && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# copy war
|
||||
COPY target/mavor.war /usr/local/tomcat/webapps
|
||||
|
||||
# create temporary directory, no need to be a volume
|
||||
RUN mkdir /mavor
|
||||
|
||||
# set required ENV
|
||||
ENV MAVOR_MAVEN_EXECUTABLE="/usr/bin/mvn"
|
||||
ENV MAVOR_TEMP_DIR="/mavor"
|
Loading…
x
Reference in New Issue
Block a user