wp-go/Dockerfile

11 lines
231 B
Docker
Raw Normal View History

2022-11-05 09:00:20 +00:00
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"]