Skip to content

Commit

Permalink
ci: add default work directory and default user, default cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
andrejpetras committed Feb 4, 2024
1 parent b719183 commit 96dca51
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
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"]

0 comments on commit 96dca51

Please sign in to comment.