Captain Hook - Web hook server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

19 lines
336 B

#!/bin/sh
# full path to the image
app="$1"
if [ -z $app ]; then
app="/srv/main"
fi
# image name
name="$2"
if [ -z $name ]; then
name="compile_container"
fi
docker build -t $name -f Dockerfile.comp .
docker container create --name temp $name
docker container cp temp:$app bin
docker container rm temp
docker-compose up --build -d