Skip to content

Commit

Permalink
Merge pull request #2422 from mapfish/secu
Browse files Browse the repository at this point in the history
Update the package from the based image
  • Loading branch information
sbrunner authored May 13, 2022
2 parents a4098bb + 68abd8d commit a51a0c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM mapfish_print_builder AS builder



FROM tomcat:9.0-jdk11-openjdk-slim AS runner
FROM tomcat:9.0-jdk17-openjdk-slim-bullseye AS runner
LABEL maintainer="Camptocamp <info@camptocamp.com>"

RUN perl -0777 -i -pe 's/(<Valve className="org.apache.catalina.valves.AccessLogValve"[^>]*>)/<Valve className="ch.qos.logback.access.tomcat.LogbackValve" quiet="true"\/>/s' "${CATALINA_HOME}/conf/server.xml" && \
Expand All @@ -15,6 +15,7 @@ RUN perl -0777 -i -pe 's/(<Valve className="org.apache.catalina.valves.AccessLog
chgrp -R root /usr/local/tomcat/conf/Catalina /usr/local/tomcat/work && \
chmod g+r /usr/local/tomcat/conf/* && \
apt-get update && \
apt-get upgrade --assume-yes && \
apt-get install --assume-yes --no-install-recommends curl \
fonts-liberation fonts-dejavu fontconfig && \
apt-get clean && \
Expand Down

0 comments on commit a51a0c8

Please sign in to comment.