2022-04-12 14:41:20 +02:00
|
|
|
#!/bin/bash
|
2020-06-23 12:11:54 +02:00
|
|
|
VERSION=$1
|
|
|
|
if [[ ! -z $VERSION ]]; then
|
|
|
|
cp ../utils/discover_my_public_ip.sh ./discover_my_public_ip.sh
|
2022-04-12 14:41:20 +02:00
|
|
|
cp ../utils/coturn-shared-key.template ./coturn-shared-key.template
|
2021-05-12 12:24:18 +02:00
|
|
|
docker build --pull --no-cache --rm=true -t openvidu/openvidu-server-pro:$VERSION .
|
2020-06-23 12:11:54 +02:00
|
|
|
rm ./discover_my_public_ip.sh
|
2022-04-12 14:41:20 +02:00
|
|
|
rm ./coturn-shared-key.template
|
2020-06-23 12:11:54 +02:00
|
|
|
else
|
|
|
|
echo "Error: You need to specify a version as first argument"
|
|
|
|
fi
|