Skip to content

Commit

Permalink
Update index.adoc
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Aug 15, 2024
1 parent f09756c commit 8fe11f1
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions docs/modules/ROOT/pages/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ If you are planning to run the application as a native executable and parse docu
<properties>
----
== Docker
When building native images in Docker using the standard Quarkus Docker configuration files some additional features need to be
installed to support Apache POI. Specifically font information is not included in [Red Hat's ubi-minimal images](https://developers.redhat.com/products/rhel/ubi). To install it
installed to support Apache POI. Specifically font information is not included in https://developers.redhat.com/products/rhel/ubi[Red Hat's ubi-minimal images]. To install it
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
Expand All @@ -33,14 +35,19 @@ 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"]
----
CAUTION: Make sure `.dockerignore` does not exclude `.so` files!
====

Expand Down

0 comments on commit 8fe11f1

Please sign in to comment.