mirror of
				https://github.com/zokradonh/kopano-docker
				synced 2025-10-31 02:17:47 +00:00 
			
		
		
		
	* 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
		
			
				
	
	
		
			11 lines
		
	
	
		
			312 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			312 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/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 .) $@
 |