Update Dockerfile.native

This commit is contained in:
Yang Yang
2024-03-06 10:06:24 +08:00
committed by GitHub
parent 811a3d921a
commit d045ef95b1

View File

@@ -9,7 +9,8 @@ COPY . /build
# Build
RUN chmod +x mvnw && \
./mvnw --no-transfer-progress native:compile -Pnative && \
./mvnw --no-transfer-progress native:compile -Pnative -Dquarkus.native.additional-build-args=-H:NativeImageOptions=-march=ivybridge
&& \
rm -rf /root/.m2
# Use a lightweight Linux base image with just enough runtime dependencies