Update Dockerfile.native

This commit is contained in:
Yang Yang
2024-03-06 08:50:31 +08:00
committed by GitHub
parent cc357db318
commit 2f0427af96

View File

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