change base image
This commit is contained in:
+22
-20
@@ -159,8 +159,8 @@
|
|||||||
<version>3.5.1</version>
|
<version>3.5.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<from>
|
<from>
|
||||||
<!-- distroless glibc base — multi-arch (amd64 + arm64), matches GraalVM native binary ABI -->
|
<!-- distroless glibc base — includes libz + libssl needed by GraalVM native binary -->
|
||||||
<image>gcr.io/distroless/base-nossl-debian12</image>
|
<image>gcr.io/distroless/base-debian12</image>
|
||||||
</from>
|
</from>
|
||||||
<to>
|
<to>
|
||||||
<image>zot.immich-ad.ovh/ai-teacher-backend</image>
|
<image>zot.immich-ad.ovh/ai-teacher-backend</image>
|
||||||
@@ -173,26 +173,28 @@
|
|||||||
<ports>
|
<ports>
|
||||||
<port>8080</port>
|
<port>8080</port>
|
||||||
</ports>
|
</ports>
|
||||||
|
<!-- invoke the native binary directly — no JVM -->
|
||||||
|
<entrypoint>
|
||||||
|
<arg>/app/ai-teacher-backend</arg>
|
||||||
|
</entrypoint>
|
||||||
</container>
|
</container>
|
||||||
<pluginExtensions>
|
<!-- copy the GraalVM-compiled binary from target/ into /app/ -->
|
||||||
<pluginExtension>
|
<extraDirectories>
|
||||||
<implementation>
|
<paths>
|
||||||
com.google.cloud.tools.jib.maven.extension.nativeimage.JibNativeImageExtension
|
<path>
|
||||||
</implementation>
|
<from>${project.build.directory}</from>
|
||||||
<properties>
|
<into>/app</into>
|
||||||
<!-- Must match <imageName> in native-maven-plugin -->
|
<includes>ai-teacher-backend</includes>
|
||||||
<imageName>ai-teacher-backend</imageName>
|
</path>
|
||||||
</properties>
|
</paths>
|
||||||
</pluginExtension>
|
<permissions>
|
||||||
</pluginExtensions>
|
<permission>
|
||||||
|
<file>/app/ai-teacher-backend</file>
|
||||||
|
<mode>755</mode>
|
||||||
|
</permission>
|
||||||
|
</permissions>
|
||||||
|
</extraDirectories>
|
||||||
</configuration>
|
</configuration>
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.google.cloud.tools</groupId>
|
|
||||||
<artifactId>jib-native-image-extension-maven</artifactId>
|
|
||||||
<version>0.1.0</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|||||||
Reference in New Issue
Block a user