From cdbbe2afe9a12b2a4d46ed907584842ca37b03b0 Mon Sep 17 00:00:00 2001 From: melloware Date: Fri, 19 Apr 2024 13:27:33 -0400 Subject: [PATCH] Update Docker Native instructions --- README.md | 19 +++++++++++++++++-- docs/modules/ROOT/pages/index.adoc | 7 +++++-- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index edd9d65..20fd4a4 100644 --- a/README.md +++ b/README.md @@ -43,10 +43,25 @@ installed to support Apache POI. Specifically font information is not included simply add these lines to your `DockerFile.native` file: ```shell -FROM registry.access.redhat.com/ubi8/ubi-minimal:8.7 +FROM registry.access.redhat.com/ubi8/ubi-minimal:8.9 -######################### Set up environment for POI ######################### +######################### Set up environment for POI ############################# RUN microdnf update && microdnf install freetype fontconfig && microdnf clean all +######################### Set up environment for POI ############################# + +WORKDIR /work/ +RUN chown 1001 /work \ + && chmod "g+rwX" /work \ + && chown 1001:root /work +# Shared objects to be dynamically loaded at runtime as needed, +COPY --chown=1001:root target/*.properties target/*.so /work/ +COPY --chown=1001:root target/*-runner /work/application +# Permissions fix for Windows +RUN chmod "ugo+x" /work/application +EXPOSE 8080 +USER 1001 + +CMD ["./application", "-Dquarkus.http.host=0.0.0.0"] ``` diff --git a/docs/modules/ROOT/pages/index.adoc b/docs/modules/ROOT/pages/index.adoc index 32fe8e1..a4612a8 100644 --- a/docs/modules/ROOT/pages/index.adoc +++ b/docs/modules/ROOT/pages/index.adoc @@ -29,7 +29,7 @@ simply add these lines to your `DockerFile.native` file: [source] ---- -FROM registry.access.redhat.com/ubi8/ubi-minimal:8.7 +FROM registry.access.redhat.com/ubi8/ubi-minimal:8.9 ######################### Set up environment for POI ########################## RUN microdnf update && microdnf install freetype fontconfig && microdnf clean all @@ -39,8 +39,11 @@ WORKDIR /work/ RUN chown 1001 /work \ && chmod "g+rwX" /work \ && chown 1001:root /work +# Shared objects to be dynamically loaded at runtime as needed, +COPY --chown=1001:root target/*.properties target/*.so /work/ COPY --chown=1001:root target/*-runner /work/application - +# Permissions fix for Windows +RUN chmod "ugo+x" /work/application EXPOSE 8080 USER 1001