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.
17 lines
410 B
17 lines
410 B
#!/usr/bin/env bash
|
|
set -o errexit
|
|
|
|
# Set the image name
|
|
IMAGE_NAME="phlak/mumble"
|
|
|
|
# Set script directory path
|
|
SCRIPT_DIR="$(dirname $(readlink -f ${0}))"
|
|
|
|
# Set image tag
|
|
TAG="$(grep 'ENV MUMBLE_VERSION' Dockerfile | awk '{print $3}')"
|
|
|
|
# Build the image
|
|
docker build --force-rm --pull --tag ${IMAGE_NAME}:${TAG} ${SCRIPT_DIR}
|
|
|
|
# Notify user of success
|
|
echo "Sucessfully created image: ${IMAGE_NAME}:${TAG}"
|