frp/Dockerfile

15 lines
320 B
Docker
Raw Permalink Normal View History

2016-03-16 17:20:53 +08:00
FROM golang:1.5
MAINTAINER fatedier
2016-03-17 17:52:59 +08:00
RUN echo "[common]\nbind_addr = 0.0.0.0\nbind_port = 7000\n[test]\npasswd = 123\nbind_addr = 0.0.0.0\nlisten_port = 80" > /usr/share/frps.ini
2016-03-16 17:20:53 +08:00
ADD ./ /usr/share/frp/
RUN cd /usr/share/frp && make
EXPOSE 80
EXPOSE 7000
2016-03-17 17:47:41 +08:00
CMD ["/usr/share/frp/bin/frps", "-c", "/usr/share/frps.ini"]