#### # This Dockerfile is used in order to build a container that runs the Quarkus application in native (no JVM) mode. # # Before building the container image run: # # ./mvnw package -Dnative # # Then, build the image with: # # docker build -f src/main/docker/Dockerfile.native -t quarkus/ffsaf-site . # # Then run the container using: # # docker run -i --rm -p 8080:8080 quarkus/ffsaf-site # ### FROM registry.access.redhat.com/ubi8/ubi-minimal:8.9 WORKDIR /work/ RUN chown 1001 /work \ && chmod "g+rwX" /work \ && chown 1001:root /work COPY --chown=1001:root ffsaf/target/*-runner /work/application COPY --chown=1001:root ffsaf/src/main/resources/cacerts /work/cacerts RUN mkdir /work/media && chown -R 1001:root /work/media EXPOSE 8080 USER 1001 ENTRYPOINT ["./application", "-Dquarkus.http.host=0.0.0.0", "-Djavax.net.ssl.trustStore=/work/cacerts", "-Djavax.net.ssl.trustStorePassword=changeit"]