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.
28 lines
538 B
28 lines
538 B
#!/bin/bash
|
|
|
|
# Usage:
|
|
#
|
|
# - DEV_NO_CACHE environment variable is optional. If set to "true" the docker image
|
|
# will be rebuilt from scratch (without reusing cache). Useful to force the execution
|
|
# of `npm install` within Dockerfile.
|
|
#
|
|
# Example:
|
|
#
|
|
# DEV_NO_CACHE="true" ./build-local.sh
|
|
|
|
set -e
|
|
|
|
EXTRA_ARGS="";
|
|
|
|
if [ "${DEV_NO_CACHE}" = "true" ] ; then
|
|
EXTRA_ARGS="${EXTRA_ARGS} --no-cache"
|
|
fi
|
|
|
|
echo ">>> Running docker build ${EXTRA_ARGS}"
|
|
docker build \
|
|
${EXTRA_ARGS} \
|
|
--tag mediasoup-demo:latest \
|
|
.
|
|
|
|
echo ">>> Image built"
|