wp-go/Dockerfile
2022-11-05 20:59:49 +08:00

10 lines
220 B
Docker

FROM golang:latest
COPY ./ /go/src/wp-go
WORKDIR /go/src/wp-go
#ENV GOPROXY="https://goproxy.cn"
RUN go build -tags netgo
FROM alpine:latest
WORKDIR /opt/wp-go
COPY --from=0 /go/src/wp-go/wp-go ./
ENTRYPOINT ["./wp-go"]