From a43e13cf9466deb115e29aaf700960ad4592bbc8 Mon Sep 17 00:00:00 2001 From: Andrey Voronkov Date: Fri, 29 Dec 2023 12:35:02 +0300 Subject: [PATCH] Set java file.encoding to support non-latin customizations with UI_APPNAME, UI_HOMEDESCRIPTION, etc --- Dockerfile | 2 +- Dockerfile-lite | 2 +- Dockerfile-ultra-lite | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6d830346..657db0b5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -42,4 +42,4 @@ EXPOSE 8080 # Set user and run command ##USER stirlingpdfuser ENTRYPOINT ["/scripts/init.sh"] -CMD ["java", "-jar", "/app.jar"] +CMD ["java", "-Dfile.encoding=UTF-8", "-jar", "/app.jar"] diff --git a/Dockerfile-lite b/Dockerfile-lite index 9d734942..068e04ca 100644 --- a/Dockerfile-lite +++ b/Dockerfile-lite @@ -60,4 +60,4 @@ ENV DOCKER_ENABLE_SECURITY=false # Run the application #USER stirlingpdfuser ENTRYPOINT ["/scripts/init-without-ocr.sh"] -CMD ["java", "-jar", "/app.jar"] +CMD ["java", "-Dfile.encoding=UTF-8", "-jar", "/app.jar"] diff --git a/Dockerfile-ultra-lite b/Dockerfile-ultra-lite index b49b9023..621ed58a 100644 --- a/Dockerfile-ultra-lite +++ b/Dockerfile-ultra-lite @@ -42,4 +42,4 @@ ENV ENDPOINTS_GROUPS_TO_REMOVE=CLI ENTRYPOINT ["/scripts/init-without-ocr.sh"] # Run the application -CMD ["java", "-jar", "/app.jar"] +CMD ["java", "-Dfile.encoding=UTF-8", "-jar", "/app.jar"]