update docker golang version

This commit is contained in:
xing 2024-04-13 22:12:20 +08:00
parent a8d1dcdd5b
commit 6f51f1c295

View File

@ -1,7 +1,6 @@
FROM golang:1.21.6-alpine as gobulidIso FROM golang:1.22.2-alpine as gobulidIso
COPY ./ /go/src/wp-go COPY ./ /go/src/wp-go
WORKDIR /go/src/wp-go WORKDIR /go/src/wp-go
#ENV GOPROXY="https://goproxy.cn"
RUN go build -ldflags "-w" -tags netgo -o wp-go app/cmd/main.go RUN go build -ldflags "-w" -tags netgo -o wp-go app/cmd/main.go
FROM alpine:latest FROM alpine:latest