2017-05-21 22:42:42 +08:00
|
|
|
FROM golang:1.8
|
2016-08-15 22:23:50 +08:00
|
|
|
|
|
|
|
COPY . /go/src/github.com/fatedier/frp
|
2016-08-16 15:06:48 +08:00
|
|
|
|
|
|
|
RUN cd /go/src/github.com/fatedier/frp \
|
|
|
|
&& make \
|
|
|
|
&& mv bin/frpc /frpc \
|
|
|
|
&& mv bin/frps /frps \
|
2017-06-21 14:46:24 +08:00
|
|
|
&& mv conf/frpc.ini /frpc.ini \
|
|
|
|
&& mv conf/frps.ini /frps.ini \
|
2016-08-16 15:06:48 +08:00
|
|
|
&& make clean
|
|
|
|
|
2016-08-15 22:23:50 +08:00
|
|
|
WORKDIR /
|
2016-08-16 15:06:48 +08:00
|
|
|
|
|
|
|
EXPOSE 80 443 6000 7000 7500
|
|
|
|
|
|
|
|
ENTRYPOINT ["/frps"]
|