wp-go/Dockerfile

10 lines
256 B
Docker
Raw Normal View History

2022-12-07 05:26:52 +00:00
FROM golang:latest as gobulidIso
2022-11-05 09:00:20 +00:00
COPY ./ /go/src/wp-go
WORKDIR /go/src/wp-go
2022-12-07 05:26:52 +00:00
ENV GOPROXY="https://goproxy.cn"
RUN go build -ldflags "-w" -tags netgo
2022-11-05 09:00:20 +00:00
FROM alpine:latest
WORKDIR /opt/wp-go
2022-12-07 05:26:52 +00:00
COPY --from=gobulidIso /go/src/wp-go/wp-go ./
2022-11-05 09:00:20 +00:00
ENTRYPOINT ["./wp-go"]