Files
StunCaddsies/build.sh
2018-10-06 08:26:02 -06:00

15 lines
348 B
Bash

#! /bin/bash
set -e
docker build -t caddsies .
docker run --rm -it \
-p 2018:2018 \
-v $(pwd)/caddyfile:/etc/caddy/Caddyfile \
-v $(pwd)/stunfile:/etc/stunfile.conf \
-v $(pwd)/stunserver.crt:/etc/stunserver.crt \
-v $(pwd)/stunserver.key:/etc/stunserver.key \
-v $(pwd)/stunclient.crt:/etc/stunclient.crt \
caddsies:latest