Skip to content

Commit

Permalink
dockerfile: update
Browse files Browse the repository at this point in the history
  • Loading branch information
fatedier committed Aug 16, 2016
1 parent ab9eff9 commit e1e18ba
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 10 deletions.
20 changes: 13 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
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 /

RUN cd /go/src/github.com/fatedier/frp \
&& make \
&& mv bin/frpc /frpc \
&& mv bin/frps /frps \
&& mv conf/frpc_min.ini /frpc.ini \
&& mv conf/frps_min.ini /frps.ini \
&& make clean

WORKDIR /
ENTRYPOINT ["frps"]
EXPOSE 6000 7000 7500

EXPOSE 80 443 6000 7000 7500

ENTRYPOINT ["/frps"]
3 changes: 0 additions & 3 deletions conf/frpc.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# [common] is integral section
[common]
# A literal address or host name for IPv6 must be enclosed
# in square brackets, as in "[::1]:80", "[ipv6-host]:http" or "[ipv6-host%zone]:80"
server_addr = 0.0.0.0
server_port = 7000
# if you want to connect frps by http proxy, you can set http_proxy here or in global environment variables
Expand Down
10 changes: 10 additions & 0 deletions conf/frpc_min.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[common]
server_addr = 0.0.0.0
server_port = 7000
auth_token = 123
privilege_token = 12345678

[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
14 changes: 14 additions & 0 deletions conf/frps_min.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[common]
bind_addr = 0.0.0.0
bind_port = 7000
vhost_http_port = 80
vhost_https_port = 443
dashboard_port = 7500
privilege_mode = true
privilege_token = 12345678

[ssh]
type = tcp
auth_token = 123
bind_addr = 0.0.0.0
listen_port = 6000

0 comments on commit e1e18ba

Please sign in to comment.