GeoNetwork HNAP deployment with Docker

I have GeoNetwork deployed as a docker container, and I would like to add the ISO Harmonized North American Profile (HNAP) plugin.

Also, how would I go about disabling the French language for it? I do recall Jody telling me about using HNAP and that I can disable the French language stuff.

I am currently running GeoNetwork v4.4.6.0

With ChatGPT help, I created a Dockerfile to load the three files:

FROM geonetwork:4.4.8

Switch to root (default in most base images)

USER root

Elegantly create the jetty group and user if they do not exist

RUN getent group jetty || groupadd -r jetty &&
id -u jetty || useradd -r -g jetty jetty

Copy files, set ownership to jetty, set permissions

COPY ./hnap8/gn-schema-iso19139.ca.HNAP-4.4.8-0.jar /opt/geonetwork/WEB-INF/lib/schema-iso19139.ca.HNAP-4.4.8-0.jar
RUN chown jetty:jetty /opt/geonetwork/WEB-INF/lib/schema-iso19139.ca.HNAP-4.4.8-0.jar
RUN chmod 664 /opt/geonetwork/WEB-INF/lib/schema-iso19139.ca.HNAP-4.4.8-0.jar

COPY ./hnap8/iso19139.ca.HNAP /opt/geonetwork/WEB-INF/data/config/schema_plugins/iso19139.ca.HNAP
RUN chown -R jetty:jetty /opt/geonetwork/WEB-INF/data/config/schema_plugins/iso19139.ca.HNAP
RUN chmod -R 775 /opt/geonetwork/WEB-INF/data/config/schema_plugins/iso19139.ca.HNAP

COPY ./hnap8/doc /opt/geonetwork/doc
RUN chown -R jetty:jetty /opt/geonetwork/doc
RUN chmod -R 775 /opt/geonetwork/doc

Switch back to jetty user

USER jetty