Adpat frontend to build docker image with buildah

This commit is contained in:
Adrien
2026-04-09 19:36:22 +02:00
parent 8e227a9429
commit d8a5bb9340
3 changed files with 22 additions and 6 deletions
+15 -2
View File
@@ -175,10 +175,23 @@ sdk use java 25-graalce
# Build native executable + Docker image (requires Docker daemon)
cd backend
mvn -Pnative package jib:dockerBuild -DskipTests
mvn -Pnative package jib:build -DskipTests
mvn -Pnative jib:build -Djib.to.auth.username=admin -Djib.to.auth.password=""
```
The image `ai-teacher-backend:latest` will appear in your local Docker. It starts in under 1 second and uses significantly less memory than the JVM image.
### Frontend build
```
buildah build \
--platform linux/arm64 \
--tag ai-teacher-frontend:latest \
frontend/
```
To export it as a tarball:
```
buildah push ai-teacher-frontend:latest \
oci-archive:/tmp/ai-teacher-frontend-arm64.tar
```
### Run Native Stack (Docker Compose)