Skip to content

Commit

Permalink
Add missing dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
gjedeer committed Aug 15, 2020
1 parent b8c58d3 commit 82dc57e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Dockerfile
@@ -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"]

0 comments on commit 82dc57e

Please sign in to comment.