You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
698 B
28 lines
698 B
####
|
|
# 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:
|
|
#
|
|
# ./gradlew build -Dquarkus.package.type=native
|
|
#
|
|
# Then, build the image with:
|
|
#
|
|
# docker build -f src/main/docker/Dockerfile.native -t quarkus/pokemong .
|
|
#
|
|
# Then run the container using:
|
|
#
|
|
# docker run -i --rm -p 8080:8080 quarkus/pokemong
|
|
#
|
|
###
|
|
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.6
|
|
WORKDIR /work/
|
|
RUN chown 1001 /work \
|
|
&& chmod "g+rwX" /work \
|
|
&& chown 1001:root /work
|
|
COPY --chown=1001:root build/*-runner /work/application
|
|
|
|
EXPOSE 8080
|
|
USER 1001
|
|
|
|
CMD ["./application", "-Dquarkus.http.host=0.0.0.0"]
|