-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.native
More file actions
31 lines (22 loc) · 1005 Bytes
/
Dockerfile.native
File metadata and controls
31 lines (22 loc) · 1005 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Dockerfile primary to have single well-known entrypoint
# From https://www.graalvm.org/latest/docs/getting-started/container-images/
#FROM ghcr.io/graalvm/native-image-community:17 as builder
#FROM quay.io/quarkus/ubi-quarkus-mandrel-builder-image:22.3-java17 as builder
FROM quay.io/quarkus/ubi-quarkus-mandrel-builder-image:jdk-21 as builder
WORKDIR /app
COPY --chown=1001 . /app
RUN chmod "g+rwX" /app
RUN microdnf install findutils
# Tests disabled because they are integration now and require external JIRA instance to function
RUN ./gradlew build -Dquarkus.package.type=native -x test
## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
#FROM quay.io/quarkus/quarkus-micro-image:2.0
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.2
WORKDIR /work/
RUN chown 1001 /work \
&& chmod "g+rwX" /work \
&& chown 1001:root /work
COPY --from=builder --chown=1001:root /app/build/*-runner /work/application
EXPOSE 8080
USER 1001
CMD ["./application", "-Dquarkus.http.host=0.0.0.0"]