diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..9267d611 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +Dockerfile +.git +*~ +*# +.#* diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..30b3076a --- /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