22 lines
596 B
Docker
22 lines
596 B
Docker
FROM tomcat:10.1-jdk21-temurin
|
|
|
|
LABEL org.opencontainers.image.title="Technobee Matrix On-Premises Service"
|
|
LABEL org.opencontainers.image.vendor="Technobee Solutions"
|
|
|
|
RUN rm -rf /usr/local/tomcat/webapps/*
|
|
|
|
COPY target/matrix.war /usr/local/tomcat/webapps/matrix.war
|
|
|
|
RUN mkdir -p /opt/matrix/config \
|
|
&& chown -R 1000:0 /opt/matrix /usr/local/tomcat \
|
|
&& chmod -R g=u /opt/matrix /usr/local/tomcat
|
|
|
|
ENV MATRIX_INSTALLATION_CONFIG=/opt/matrix/config/installation.yml
|
|
ENV JAVA_OPTS="-XX:MaxRAMPercentage=75.0 -Djava.awt.headless=true"
|
|
|
|
EXPOSE 8080
|
|
|
|
USER 1000
|
|
|
|
CMD ["catalina.sh", "run"]
|