Browse Source

Добавил опцию JAVA_OPTS="-XX:+ExitOnOutOfMemoryError", см. Redmine 174238

Tomishinets Vladimir 3 years ago
parent
commit
76a45b3d4b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Dockerfile

+ 2 - 1
Dockerfile

@@ -3,7 +3,8 @@ FROM registry.sdsys.ru/iru/iru-base:7.6
 ENTRYPOINT ["docker-entrypoint.sh"]
 COPY docker-entrypoint.sh healthcheck.sh /usr/share/web-registry-portal/bin/
 COPY application-logger.xml /etc/web-registry-portal/
-ENV PATH=/usr/share/web-registry-portal/bin:$PATH LANG="en_US.UTF-8" ADMIN_HOST=admin
+ENV PATH=/usr/share/web-registry-portal/bin:$PATH LANG="en_US.UTF-8" ADMIN_HOST=admin \
+    JAVA_OPTS="-XX:+ExitOnOutOfMemoryError"
 EXPOSE 9000 2551
 HEALTHCHECK --start-period=30s --interval=20s --timeout=10s --retries=2 CMD healthcheck.sh
 ARG repo=prod