Skip to content

Commit

Permalink
🧣 quarkus native build 🧣
Browse files Browse the repository at this point in the history
  • Loading branch information
eformat committed Jan 16, 2024
1 parent 7321314 commit 6132e2f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile.native
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ LABEL labs.build.url="${build_url}" \
labs.git.tag="${git_commit}" \
labs.git.url="${git_url}"

RUN microdnf -y install freetype fontconfig \
&& microdnf clean all

WORKDIR /work/
COPY ./target/*-runner /work/application
RUN chmod 775 /work /work/application
Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ IMG := $(REPOSITORY):latest
compile:
mvn -s settings.xml clean package -DskipTests

compile-native:
mvn -s settings.xml clean package -DskipTests -P native

# test
test:
mvn -s settings.xml clean test
Expand All @@ -31,6 +34,9 @@ podman-build-nocompile:
podman-build: compile
podman build . -t ${IMG} -f Dockerfile.jvm

podman-build-native: compile-native
podman build . -t ${IMG} -f Dockerfile.native

# Push the oci image
podman-push: podman-build
podman push ${IMG}
Expand Down

0 comments on commit 6132e2f

Please sign in to comment.