diceware/bin/docker-dev.sh

17 lines
258 B
Bash
Raw Normal View History

2023-06-10 12:54:19 -04:00
#!/bin/bash
#
# Script to run the script in dev mode, which will spawn a shell
#
# Errors are fatal
set -e
# Change to the parent directory
pushd $(dirname $0)/.. > /dev/null
PORT=${PORT:=8000}
docker run --rm -it -p ${PORT}:80 -v $(pwd):/mnt diceware