AicsKnowledgeBase_backend/buildDockerImage.ps1

14 lines
402 B
PowerShell

.\gradlew.bat bootJar
java -Djarmode=layertools `
-jar .\build\libs\AicsKnowledgeBase_main-1.0.0.jar `
extract --destination build/extracted
docker build -f .\Dockerfile -t auto/aics_main:latest .
echo 'saving...'
docker save -o ..\docker\aics_main.tar auto/aics_main:latest
echo 'compressing...'
Compress-Archive -Path ..\docker\aics_main.tar -DestinationPath ..\docker\aics_main.zip -Update
pause