From 36b58ab60cc693fec9f38574508e8ce6f63f21e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A2=81=E5=87=A1=E8=BF=AA?= <541832074@qq.com> Date: Wed, 6 Sep 2017 12:51:29 +0800 Subject: [PATCH] add Dockerfile_multiple_build --- Dockerfile_multiple_build | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Dockerfile_multiple_build diff --git a/Dockerfile_multiple_build b/Dockerfile_multiple_build new file mode 100644 index 0000000..288fe55 --- /dev/null +++ b/Dockerfile_multiple_build @@ -0,0 +1,21 @@ +FROM golang:1.8 as frpBuild + +COPY . /go/src/github.com/fatedier/frp + +ENV CGO_ENABLED=0 + +RUN cd /go/src/github.com/fatedier/frp \ + && make + +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/frps / +COPY --from=frpBuild /go/src/github.com/fatedier/frp/conf/frps.ini / + +EXPOSE 80 443 6000 7000 7500 + +WORKDIR / + +CMD ["/frps","-c","frps.ini"] \ No newline at end of file