All Downloads are FREE. Search and download functionalities are using the official Maven repository.

config.flavour.quarkus-3-gradle-kts.src.main.docker.Dockerfile.native-micro Maven / Gradle / Ivy

There is a newer version: 8.11.9
Show newest version
####
# This Dockerfile is used in order to build a container that runs the Quarkus application in native (no JVM) mode.
# It uses a micro base image, tuned for Quarkus native executables.
# It reduces the size of the resulting container image.
# Check https://quarkus.io/guides/quarkus-runtime-base-image for further information about this image.
#
# Before building the container image run:
#
# ./gradlew build -Dquarkus.native.enabled=true
#
# Then, build the image with:
#
# docker build -f src/main/docker/Dockerfile.native-micro -t quarkus/fj-doc-quarkus-tutorial .
#
# Then run the container using:
#
# docker run -i --rm -p 8080:8080 quarkus/fj-doc-quarkus-tutorial
#
###
FROM quay.io/quarkus/quarkus-micro-image:2.0
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

ENTRYPOINT ["./application", "-Dquarkus.http.host=0.0.0.0"]




© 2015 - 2025 Weber Informatics LLC | Privacy Policy