forked from jeantessier/dependency-finder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
22 lines (19 loc) · 817 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
# To build:
# $ docker build . --build-arg version=1.2.1-beta6 --tag jeantessier/dependency-finder-tomcat:1.2.1-beta6 --tag jeantessier/dependency-finder-tomcat:latest
#
# To upload to hub.docker.com:
# $ docker push jeantessier/dependency-finder-tomcat:1.2.1-beta6
# $ docker push jeantessier/dependency-finder-tomcat:latest
#
# To run:
# $ docker run --detach --rm --publish 8080:8080 --volume `pwd`/lib/DependencyFinder.jar:/code/DependencyFinder.jar:ro jeantessier/dependency-finder-tomcat
# or
# $ docker run --detach --rm --publish 8080:8080 --volume `pwd`/lib:/code:ro jeantessier/dependency-finder-tomcat
#
# Mount code files in /code.
# Mount existing graph as /code/df.xml.
#
FROM tomcat:10.0
ARG version
COPY dist/DependencyFinder-${version}.war /usr/local/tomcat/webapps/ROOT.war