From 3fcf7efc5afbaba8c049e60c32f729b139880638 Mon Sep 17 00:00:00 2001 From: Manfred Touron Date: Mon, 15 Aug 2016 16:23:50 +0200 Subject: [PATCH] Initial Docker support --- .dockerignore | 5 +++++ Dockerfile | 11 +++++++++++ 2 files changed, 16 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..9267d61 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +Dockerfile +.git +*~ +*# +.#* diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..30b3076 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM golang:1.6 + +RUN go get github.com/tools/godep +COPY . /go/src/github.com/fatedier/frp +RUN cd /go/src/github.com/fatedier/frp \ + && make \ + && mv bin/frpc bin/frps /usr/local/bin \ + && mv conf/*.ini / +WORKDIR / +ENTRYPOINT ["frps"] +EXPOSE 6000 7000 7500