-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.native
More file actions
28 lines (20 loc) · 912 Bytes
/
Dockerfile.native
File metadata and controls
28 lines (20 loc) · 912 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
# 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:21 AS builder
FROM quay.io/quarkus/ubi-quarkus-mandrel-builder-image:jdk-26.0.0_0 as builder
WORKDIR /app
COPY --chown=1001 . /app
RUN chmod "g+rwX" /app
# Tests run in separate CI task and require remote service unfortunately
RUN ./gradlew build -Dquarkus.native.enabled=true -Dquarkus.package.jar.enabled=false -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"]