Merge pull request #78 from moul/add-docker

Initial Docker support
This commit is contained in:
fatedier 2016-08-15 23:37:53 +08:00 committed by GitHub
commit 87c9b8f548
2 changed files with 16 additions and 0 deletions

5
.dockerignore Normal file
View File

@ -0,0 +1,5 @@
Dockerfile
.git
*~
*#
.#*

11
Dockerfile Normal file
View File

@ -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