optimized image layers

This commit is contained in:
Andreas Balogh
2022-07-17 19:16:02 +00:00
parent 9cd74b69ed
commit d8af5586ef
5 changed files with 80 additions and 28 deletions

9
build.sh Normal file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/bash
DOCKER_BUILDKIT=1 docker build -f kopano.dockerfile -t kopano .
docker container prune -f
docker create --name kopano kopano:latest
docker export kopano | docker import - kopano:squashed
# docker run -d --name kopano kopano:squashed
# docker exec -it kopano bash
# docker stop kopano
# docker rm kopano