Browse Source

Update Dockerfile

pull/427/head
devad 8 months ago
parent
commit
40cc2eb687
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      Dockerfile

+ 1
- 1
Dockerfile View File

@@ -14,7 +14,7 @@ COPY . .
# 使用 GOOS 和 GOARCH 环境变量来构建不同架构的二进制文件
# RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -ldflags="-w -s" -o pcm-core-api
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \
--mount=type=cache,target=/root/.cache/go-build \
--mount=type=cache,target=/go/cache \
go build -ldflags="-w -s" -o pcm-core-api
#RUN go build -ldflags="-w -s" -o pcm-core-api



Loading…
Cancel
Save