frp/Dockerfile

21 lines
493 B
Docker
Raw Normal View History

2017-09-04 15:53:35 +08:00
FROM golang:1.8 as frpBuild
2016-08-15 22:23:50 +08:00
COPY . /go/src/github.com/fatedier/frp
2016-08-16 15:06:48 +08:00
2017-09-04 15:53:35 +08:00
ENV CGO_ENABLED=0
2016-08-16 15:06:48 +08:00
RUN cd /go/src/github.com/fatedier/frp \
2017-09-04 15:53:35 +08:00
&& make
2016-08-16 15:06:48 +08:00
2017-09-04 15:53:35 +08:00
FROM alpine:3.6
COPY --from=frpBuild /go/src/github.com/fatedier/frp/bin/frpc /
COPY --from=frpBuild /go/src/github.com/fatedier/frp/conf/frpc.ini /
COPY --from=frpBuild /go/src/github.com/fatedier/frp/bin/frpc /
COPY --from=frpBuild /go/src/github.com/fatedier/frp/conf/frps.ini /
2016-08-16 15:06:48 +08:00
EXPOSE 80 443 6000 7000 7500
2017-09-04 15:53:35 +08:00
WORKDIR /
CMD ["/frps","-c","frps.ini"]