-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
31 lines (26 loc) · 957 Bytes
/
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
# Dockerfile for the generating the webapp image
#
# To build:
#
# docker build -t docker.lib.umd.edu/fcrepo-webapp:<VERSION> -f Dockerfile .
#
# where <VERSION> is the Docker image version to create.
FROM maven:3.8.6-eclipse-temurin-8 AS compile
ENV SOURCE_DIR=/opt/umd-fcrepo-webapp
COPY src $SOURCE_DIR/src
COPY pom.xml $SOURCE_DIR
WORKDIR $SOURCE_DIR
RUN mvn package -DwarFileName=umd-fcrepo-webapp
FROM tomcat:8.5.83-jdk8-temurin-jammy
# default context path is the root, making the full URL e.g. http://localhost:8080/
ENV CONTEXT_PATH=""
# default heap size is 2 GB
ENV TOMCAT_HEAP=2048m
# default connection timout is 120 seconds (120,000 ms)
ENV CONNECTION_TIMEOUT=120000
RUN mkdir -p /opt/umd-fcrepo-webapp
COPY --from=compile /opt/umd-fcrepo-webapp/target/umd-fcrepo-webapp.war /opt/umd-fcrepo-webapp/
COPY src/docker/usr/local/tomcat/ /usr/local/tomcat/
VOLUME /var/umd-fcrepo-webapp
# for the store-and-forward broker
VOLUME /var/activemq