diff --git a/Dockerfile b/Dockerfile index da16642..dc7f062 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,4 +3,12 @@ FROM registry.access.redhat.com/ubi9/ubi-minimal:9.3-1552 LABEL org.opencontainers.image.source="https://github.com/onecx/docker-quarkus-native" LABEL org.opencontainers.image.description="Docker image for Quarkus native application base on ubi9/ubi-minimal" -EXPOSE 8080 \ No newline at end of file +WORKDIR /work/ +RUN chown 1001 /work \ + && chmod "g+rwX" /work \ + && chown 1001:root /work + +USER 1001 +EXPOSE 8080 + +CMD ["./application", "-Dquarkus.http.host=0.0.0.0"] \ No newline at end of file