try change image building to buildah
This commit is contained in:
@@ -20,7 +20,7 @@ COPY src ./src
|
||||
RUN mvn -Pnative package -DskipTests
|
||||
|
||||
# ---- Runtime stage: minimal ARM64 distroless ----
|
||||
FROM --platform=$TARGETPLATFORM gcr.io/distroless/base-nossl-debian12
|
||||
FROM --platform=$TARGETPLATFORM gcr.io/distroless/base-debian12
|
||||
COPY --from=build /app/target/ai-teacher-backend /app/ai-teacher-backend
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["/app/ai-teacher-backend"]
|
||||
|
||||
@@ -205,6 +205,15 @@
|
||||
<build>
|
||||
<plugins>
|
||||
|
||||
<!-- skip jib in native builds — use Dockerfile.native + buildah instead -->
|
||||
<plugin>
|
||||
<groupId>com.google.cloud.tools</groupId>
|
||||
<artifactId>jib-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
<skip>true</skip>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<!-- GraalVM native-image compilation -->
|
||||
<plugin>
|
||||
<groupId>org.graalvm.buildtools</groupId>
|
||||
|
||||
Reference in New Issue
Block a user