Skip to content

Commit

Permalink
add Dockerfile_multiple_build
Browse files Browse the repository at this point in the history
  • Loading branch information
DiamondYuan committed Sep 6, 2017
1 parent 6320f15 commit 36b58ab
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Dockerfile_multiple_build
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 36b58ab

Please sign in to comment.