diff --git a/main/docker/Dockerfile b/main/docker/Dockerfile
index 2b7873e85..533fc32a5 100644
--- a/main/docker/Dockerfile
+++ b/main/docker/Dockerfile
@@ -55,6 +55,7 @@ ENV METRICS_PORTAL_CONFIG="-Dconfig.resource=portal.application.conf"
ENV JAVA_OPTS="\
--add-opens java.base/java.nio=ALL-UNNAMED \
--add-opens java.base/sun.nio.ch=ALL-UNNAMED \
+ --add-opens=java.base/java.lang=ALL-UNNAMED \
-XX:+HeapDumpOnOutOfMemoryError \
-XX:HeapDumpPath=/opt/metrics-portal/logs/metrics-portal.oom.hprof \
-Xlog:gc*:file=/opt/metrics-portal/logs/metrics-portal.gc.log:none:filecount=5,filesize=10M \
@@ -66,7 +67,7 @@ ENV APP_OPTS="/opt/metrics-portal"
ENV ADDITIONAL_APP_OPTS=""
# Build
-RUN apt update && apt install -y gosu chromium-browser && rm -rf /var/lib/apt/lists/*
+RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y gosu chromium-browser && rm -rf /var/lib/apt/lists/*
RUN mkdir -p /opt/metrics-portal/lib/ext && \
mkdir -p /opt/metrics-portal/config && \
mkdir -p /opt/metrics-portal/logs
diff --git a/pom.xml b/pom.xml
index 30e774d1a..3401429b5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -286,6 +286,18 @@
org.apache.maven.plugins
maven-surefire-plugin
+
+
+ default-test
+ test
+
+ test
+
+
+ @{argLine} --add-opens=java.base/java.lang=ALL-UNNAMED -Xms512m -ea -Duser.timezone="UTC"
+
+
+
org.apache.maven.plugins