Update Dockerfile

This commit is contained in:
zhao xin authored and GitHub committed 2019-12-27 11:37:14 +08:00
1 parent 9e62422db6
commit 371dd4baa0
1 file changed
+9 -2
+9 -2
View File
@@ -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 ./