summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGDR! <gdr@gdr.name>2020-08-15 19:42:53 +0200
committerGDR! <gdr@gdr.name>2020-08-15 19:42:53 +0200
commit82dc57e4c9e4ef2eeb53224328ac7fa87c694987 (patch)
treed0be1a3f6f6927351f22add2d2dc5f643f38bd94
parentb8c58d39c381e1b8706c39f17f2e4518a07769a9 (diff)
Add missing dockerfile
-rw-r--r--Dockerfile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..a326577
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,17 @@
1FROM debian:sid AS builder
2WORKDIR /root
3RUN apt update && apt -y install pkg-config build-essential make libtoxcore-dev dh-make git python3-jinja2 python3-requests
4RUN git clone https://github.com/gjedeer/tuntox.git && cd tuntox && tar -zcf ../tuntox_0.0.9.orig.tar.gz . && dpkg-buildpackage -us -uc
5
6FROM alpine:latest
7
8COPY scripts/tokssh /usr/bin/tokssh
9COPY --from=0 /root/tuntox/tuntox /usr/bin/tuntox
10
11RUN chmod +x /usr/bin/tuntox /usr/bin/tokssh && \
12 mkdir /data
13
14EXPOSE 33446/tcp
15EXPOSE 33446:33447/udp
16
17CMD ["/usr/bin/tuntox", "-C", "/data", "-t", "33446", "-u", "33446:33447", "-d"]