-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
37 lines (29 loc) · 1.25 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Install the base requirements for the app.
# This stage is to support development.
# docker-compose up --build --remove-orphans
FROM tomcat:9.0 AS base
#WORKDIR /
# Metadata indicating an image maintainer.
LABEL maintainer="kmdn@github.com"
# Export has to be done through Eclipse,
# otherwise you also need to get the agnos_collab-0.0.1.jar depedency
# which is annoying/difficult/'impossible' to do due to the WAR's
# way of deploying in Tomcat
#ADD agnos-web-0.0.1.war /usr/local/tomcat/webapps/
#ADD ROOT.war /usr/local/tomcat/webapps/
# Take it directly out of the target repo
ADD ./clit_frontend/target/clit-web-0.0.1.war /usr/local/tomcat/webapps/ROOT.war
#ADD ./clit-web-0.0.1.war /usr/local/tomcat/webapps/ROOT.war
#ADD agnos_collab-0.0.1.jar /usr/local/tomcat/webapps/ROOT/WEB-INF/lib/
# run program on startup
# CMD ["python", "linker_recommender.py"]
ADD evaluation_datasets/ /usr/local/tomcat/default/resources/data/evaluation_datasets/
ADD other_datasets/* /usr/local/tomcat/default/resources/data/evaluation_datasets/
# Expose port 8080 (can also be done in docker-compose.yml)
EXPOSE 8080
# Run tomcat...
# Foreground
CMD ["catalina.sh", "run"]
# Background w/ logs showing
#CMD ["tomcat/bin/startup.sh"]
#CMD ["tail", "-f", "tomcat/logs/catalina.out"]