From cdd79aee524f3b50c5ede4003b3eeecd55c27cd9 Mon Sep 17 00:00:00 2001 From: fatedier Date: Wed, 16 Mar 2016 17:20:53 +0800 Subject: [PATCH] add Dockerfile --- Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bbfc6e1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM golang:1.5 + +MAINTAINER fatedier + +RUN echo "[common]\nbind_addr = 0.0.0.0\nbind_port = 7000\n[wiki]\npasswd = 123\nbind_addr = 0.0.0.0\nlisten_port = 80" > /usr/share/frps.ini + +ADD ./ /usr/share/frp/ + +RUN cd /usr/share/frp && make + +EXPOSE 80 +EXPOSE 7000 + +CMD ["/usr/share/frp/bin/frps -c /usr/share/frps.ini"]