Update Dockerfile

This commit is contained in:
zhao xin 2019-12-27 11:37:14 +08:00 committed by GitHub
parent 9e62422db6
commit 371dd4baa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 ./