fix: not change vcs directory when build docker image

master
Shengjing Zhu 2022-07-23 17:15:35 +08:00
parent 4dc0f8e861
commit d502e541fd
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
FROM --platform=$BUILDPLATFORM golang as builder
WORKDIR /app
COPY . .
RUN go mod vendor
RUN go mod download
ARG TARGETARCH
RUN CGO_ENABLED=0 GOARCH=$TARGETARCH go build -v -trimpath -ldflags="-w -s" .