aboutsummaryrefslogtreecommitdiff
path: root/stund
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2018-08-14 02:56:29 +0000
committerMike Crute <mike@crute.us>2018-08-14 02:56:29 +0000
commitf3e304a5a942b53000d097e5cebf036c799d4d46 (patch)
tree53cbb3516d138a26556214c726bbf894ea46cec4 /stund
parentb6b408ea6578665cd4621a18719ec6bace1b9240 (diff)
downloaddockerfiles-f3e304a5a942b53000d097e5cebf036c799d4d46.tar.bz2
dockerfiles-f3e304a5a942b53000d097e5cebf036c799d4d46.tar.xz
dockerfiles-f3e304a5a942b53000d097e5cebf036c799d4d46.zip
stund
Diffstat (limited to 'stund')
-rw-r--r--stund/Dockerfile15
-rw-r--r--stund/Makefile20
2 files changed, 35 insertions, 0 deletions
diff --git a/stund/Dockerfile b/stund/Dockerfile
new file mode 100644
index 0000000..962ecb6
--- /dev/null
+++ b/stund/Dockerfile
@@ -0,0 +1,15 @@
1FROM alpine:latest
2LABEL maintainer="Mike Crute <mike@crute.us>"
3
4RUN set -euxo pipefail; \
5 apk add --no-cache \
6 dumb-init \
7 su-exec \
8 libnice; \
9 adduser -SDH stun
10
11CMD [ \
12 "/usr/bin/dumb-init", "-c", \
13 "/sbin/su-exec", "stun", \
14 "/usr/bin/stund", "-4" \
15]
diff --git a/stund/Makefile b/stund/Makefile
new file mode 100644
index 0000000..a0fa40d
--- /dev/null
+++ b/stund/Makefile
@@ -0,0 +1,20 @@
1VERSION=latest
2IMAGE=docker.crute.me/stund
3
4all:
5 docker build -t $(IMAGE):$(VERSION) .
6
7all-no-cache:
8 docker build \
9 --no-cache \
10 -t $(IMAGE):$(VERSION) .
11
12run:
13 docker run -d \
14 -p 3478:3478/udp \
15 $(IMAGE):$(VERSION)
16
17publish:
18 docker push $(IMAGE):$(VERSION)
19 docker tag $(IMAGE):$(VERSION) $(IMAGE):latest
20 docker push $(IMAGE):latest