添加Dockerfile
This commit is contained in:
parent
8b5424bdd2
commit
51e95a3e62
11
Dockerfile
Normal file
11
Dockerfile
Normal file
|
@ -0,0 +1,11 @@
|
|||
FROM golang:latest
|
||||
COPY ./ /go/src/wp-go
|
||||
WORKDIR /go/src/wp-go
|
||||
#ENV GOPROXY="https://goproxy.cn"
|
||||
#ENV CGO=0
|
||||
RUN go build -tags netgo
|
||||
|
||||
FROM alpine:latest
|
||||
WORKDIR /opt/wp-go
|
||||
COPY --from=0 /go/src/wp-go/wp-go ./
|
||||
ENTRYPOINT ["./wp-go"]
|
Loading…
Reference in New Issue
Block a user