1
0
mirror of https://github.com/zokradonh/kopano-docker.git synced 2026-08-24 14:45:34 +00:00

build fixes and readme improvements (#85)

* add compose to the build image
* update readme
* fine tuning for build container
* directly pass commands to run script in build env
* fix dockerfile so that everything can be build on Docker version 17.05.0-ce, build 9f07f0e-synology
This commit is contained in:
Felix Bartels
2019-01-28 11:07:06 +01:00
committed by GitHub
parent 6c70d11108
commit 6a14fbe174
7 changed files with 47 additions and 11 deletions
+4 -2
View File
@@ -1,8 +1,10 @@
#!/bin/sh
if [ ! $(id -u) -eq 0 ]; then
echo "This script may need to be run as root to be able to use docker/docker-compose through it."
fi
docker run \
--rm -it \
-u $(id -u ${USER}):$(id -g ${USER}) \
-v /var/run/docker.sock:/var/run/docker.sock \
-v ${PWD}/..:/kopano-docker/ \
$(docker build -q .)
$(docker build -q .) $@