Matthias Andreas Benkard | 4c5847b | 2020-01-12 15:42:02 +0100 | [diff] [blame] | 1 | #### |
| 2 | # This Dockerfile is used in order to build a container that runs the Quarkus application in native (no JVM) mode |
| 3 | # |
| 4 | # Before building the docker image run: |
| 5 | # |
| 6 | # mvn package -Pnative -Dquarkus.native.container-build=true |
| 7 | # |
| 8 | # Then, build the image with: |
| 9 | # |
| 10 | # docker build -f src/main/docker/Dockerfile.native -t quarkus/mulkcms2 . |
| 11 | # |
| 12 | # Then run the container using: |
| 13 | # |
| 14 | # docker run -i --rm -p 8080:8080 quarkus/mulkcms2 |
| 15 | # |
| 16 | ### |
| 17 | FROM registry.access.redhat.com/ubi8/ubi-minimal |
| 18 | WORKDIR /work/ |
| 19 | COPY build/*-runner /work/application |
| 20 | RUN chmod 775 /work |
| 21 | EXPOSE 8080 |
| 22 | CMD ["./application", "-Dquarkus.http.host=0.0.0.0"] |