diff options
author | GDR! <gdr@gdr.name> | 2020-08-15 19:42:53 +0200 |
---|---|---|
committer | GDR! <gdr@gdr.name> | 2020-08-15 19:42:53 +0200 |
commit | 82dc57e4c9e4ef2eeb53224328ac7fa87c694987 (patch) | |
tree | d0be1a3f6f6927351f22add2d2dc5f643f38bd94 | |
parent | b8c58d39c381e1b8706c39f17f2e4518a07769a9 (diff) |
Add missing dockerfile
-rw-r--r-- | Dockerfile | 17 |
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 @@ | |||
1 | FROM debian:sid AS builder | ||
2 | WORKDIR /root | ||
3 | RUN apt update && apt -y install pkg-config build-essential make libtoxcore-dev dh-make git python3-jinja2 python3-requests | ||
4 | RUN git clone https://github.com/gjedeer/tuntox.git && cd tuntox && tar -zcf ../tuntox_0.0.9.orig.tar.gz . && dpkg-buildpackage -us -uc | ||
5 | |||
6 | FROM alpine:latest | ||
7 | |||
8 | COPY scripts/tokssh /usr/bin/tokssh | ||
9 | COPY --from=0 /root/tuntox/tuntox /usr/bin/tuntox | ||
10 | |||
11 | RUN chmod +x /usr/bin/tuntox /usr/bin/tokssh && \ | ||
12 | mkdir /data | ||
13 | |||
14 | EXPOSE 33446/tcp | ||
15 | EXPOSE 33446:33447/udp | ||
16 | |||
17 | CMD ["/usr/bin/tuntox", "-C", "/data", "-t", "33446", "-u", "33446:33447", "-d"] | ||