Adpat frontend to build docker image with buildah
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user