From 371dd4baa00203f9e06674e3d76370e32ef78cec Mon Sep 17 00:00:00 2001 From: zhao xin Date: Fri, 27 Dec 2019 11:37:14 +0800 Subject: [PATCH] Update Dockerfile --- Dockerfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3fa58ff..9e1ab87 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,2 +1,9 @@ -FROM golang:onbuild -EXPOSE 8080 +FROM golang AS build-env + +RUN go get -u github.com/esrrhs/pingtunnel +RUN go get -u github.com/esrrhs/pingtunnel/... +RUN go install github.com/esrrhs/pingtunnel + +FROM debian +COPY --from=build-env /go/bin/pingtunnel . +WORKDIR ./