更新 Dockerfile
This commit is contained in:
@@ -7,7 +7,7 @@ COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o GHub
|
||||
RUN go mod tidy && CGO_ENABLED=0 go build -ldflags="-s -w" -o GHub
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
|
||||
Reference in New Issue
Block a user