blob: 1cb12dde5fc47edde0512bb81fb575db7db877b1 [file] [log] [blame]
Matthias Andreas Benkard4c5847b2020-01-12 15:42:02 +01001####
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###
17FROM registry.access.redhat.com/ubi8/ubi-minimal
18WORKDIR /work/
19COPY build/*-runner /work/application
20RUN chmod 775 /work
21EXPOSE 8080
22CMD ["./application", "-Dquarkus.http.host=0.0.0.0"]