2 # This Dockerfile is used in order to build a container that runs the Quarkus application in native (no JVM) mode
4 # Before building the container image run:
6 # ./gradlew build -Dquarkus.package.type=native
8 # Then, build the image with:
10 # docker build -f src/main/docker/Dockerfile.native -t quarkus/beige0 .
12 # Then run the container using:
14 # docker run -i --rm -p 8080:8080 quarkus/beige0
17 FROM registry.access.redhat.com/ubi8/ubi-minimal:8.3
19 RUN chown 1001 /work \
20 && chmod "g+rwX" /work \
21 && chown 1001:root /work
22 COPY --chown=1001:root build/*-runner /work/application
27 CMD ["./application", "-Dquarkus.http.host=0.0.0.0"]