diff --git a/build.sh b/build.sh index 84f7e35..9572229 100644 --- a/build.sh +++ b/build.sh @@ -1,4 +1,5 @@ #!/usr/bin/bash +# docker run -d --name apache -p80:80 -v/root/kopano/dist:/var/www/... apache DOCKER_BUILDKIT=1 docker build -f kopano.dockerfile -t kopano . docker container prune -f docker create --name kopano kopano:latest diff --git a/build2.sh b/build2.sh new file mode 100644 index 0000000..a18d5c9 --- /dev/null +++ b/build2.sh @@ -0,0 +1,15 @@ +#!/usr/bin/bash +# docker login --username baloan --password 'yZBCUs5&@?:.' +# docker run -d --name apache -p80:80 -v/root/kopano/dist:/var/www httpd +export DOCKER_BUILDKIT=1 +cd ~/kopano/core; docker build -t core . +cd ~/kopano/webapp; docker build -t webapp . +cd ~/kopano/postfix; docker build -t postfix . +cd ~/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 \ No newline at end of file diff --git a/core/Dockerfile b/core/Dockerfile new file mode 100644 index 0000000..9b2b63a --- /dev/null +++ b/core/Dockerfile @@ -0,0 +1,34 @@ +# syntax=docker/dockerfile:1.3-labs +FROM ubuntu:20.04 +# install apt packages +RUN <