Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM debian:sid AS builder | ||
WORKDIR /root | ||
RUN apt update && apt -y install pkg-config build-essential make libtoxcore-dev dh-make git python3-jinja2 python3-requests | ||
RUN git clone https://github.com/gjedeer/tuntox.git && cd tuntox && tar -zcf ../tuntox_0.0.9.orig.tar.gz . && dpkg-buildpackage -us -uc | ||
|
||
FROM alpine:latest | ||
|
||
COPY scripts/tokssh /usr/bin/tokssh | ||
COPY --from=0 /root/tuntox/tuntox /usr/bin/tuntox | ||
|
||
RUN chmod +x /usr/bin/tuntox /usr/bin/tokssh && \ | ||
mkdir /data | ||
|
||
EXPOSE 33446/tcp | ||
EXPOSE 33446:33447/udp | ||
|
||
CMD ["/usr/bin/tuntox", "-C", "/data", "-t", "33446", "-u", "33446:33447", "-d"] |