-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (23 loc) · 805 Bytes
/
Dockerfile
File metadata and controls
31 lines (23 loc) · 805 Bytes
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
FROM tomcat:9.0.70-jre11-temurin-jammy
COPY /build/distributions/war/*.war /usr/local/tomcat/webapps/
COPY /modules/core/src/dk/bpas/wfmarchive/*.properties /opt/app_home/
# set CATALINA_OPTS env variable to point to logback config file and app home directory
ENV CATALINA_OPTS="-Dspring.profiles.active=docker -Dapp.home=/opt/app-home"
ARG SQL_USERNAME
ARG SQL_PASSWORD
ARG SQL_DBNAME
ARG SQL_HOSTNAME
ARG SQL_PORT
ARG SQL_MAX_POOLSIZE
ARG ANONYMOUS_ENABLED
ARG CREATE_S3_CLIENT
ENV SQL_USERNAME ${SQL_USERNAME}
ENV SQL_PASSWORD ${SQL_PASSWORD}
ENV SQL_DBNAME ${SQL_DBNAME}
ENV SQL_HOSTNAME ${SQL_HOSTNAME}
ENV SQL_PORT ${SQL_PORT}
ENV SQL_MAX_POOLSIZE ${SQL_MAX_POOLSIZE}
ENV ANONYMOUS_ENABLED ${ANONYMOUS_ENABLED}
ENV CREATE_S3_CLIENT ${CREATE_S3_CLIENT}
EXPOSE 8080
CMD ["catalina.sh", "run"]