#!/bin/bash set -e # -p # $path should be the path to the root of the Hugo content while getopts p: flag do case "${flag}" in p) path=${OPTARG};; esac done if [ -z "$path" ]; then echo "Path not set" exit 1 fi hugo --quiet --source $path cp -r $path/public ./blogContent docker build -t scubbo/blog_nginx . -f-<