StunCaddsies/build.sh

22 lines
557 B
Bash

#! /bin/bash
set -e
docker build -t caddsies .
docker run --rm -it \
-p 2018:2018 \
-v $(pwd)/caddyfile:/mnt/Caddyfile \
-v $(pwd)/stunfile:/mnt/stunfile.conf \
-v $(pwd)/stunserver.crt:/mnt/stunserver.crt \
-v $(pwd)/stunserver.key:/mnt/stunserver.key \
-v $(pwd)/stunclient.crt:/mnt/stunclient.crt \
-e CADDYFILE=/mnt/Caddyfile \
-e STUNFILE=/mnt/stunfile.conf \
-e STUNSERVERCRT=/mnt/stunserver.crt \
-e STUNSERVERKEY=/mnt/stunserver.key \
-e STUNCLIENTCRT=/mnt/stunclient.crt \
caddsies:latest
#-p 2015:2015 \