diff options
Diffstat (limited to 'src/main/docker/Dockerfile.native')
-rw-r--r-- | src/main/docker/Dockerfile.native | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/main/docker/Dockerfile.native b/src/main/docker/Dockerfile.native new file mode 100644 index 0000000..1cb12dd --- /dev/null +++ b/src/main/docker/Dockerfile.native @@ -0,0 +1,22 @@ +#### +# This Dockerfile is used in order to build a container that runs the Quarkus application in native (no JVM) mode +# +# Before building the docker image run: +# +# mvn package -Pnative -Dquarkus.native.container-build=true +# +# Then, build the image with: +# +# docker build -f src/main/docker/Dockerfile.native -t quarkus/mulkcms2 . +# +# Then run the container using: +# +# docker run -i --rm -p 8080:8080 quarkus/mulkcms2 +# +### +FROM registry.access.redhat.com/ubi8/ubi-minimal +WORKDIR /work/ +COPY build/*-runner /work/application +RUN chmod 775 /work +EXPOSE 8080 +CMD ["./application", "-Dquarkus.http.host=0.0.0.0"]
\ No newline at end of file |