chore(deps): update golang docker tag to v1.27

This commit is contained in:
renovate[bot] authored and GitHub committed 2026-10-28 22:52:08 +00:00
1 parent 47943c76ac
commit 88829434d1
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -41,7 +41,7 @@ CMD ["node", "server.js"]
FROM node:22-alpine
# name a stage so later stages can copy from it
FROM golang:1.23 AS build
FROM golang:1.27@sha256:2920bb124f1a2e12a1d39f0cab756ae0068441ee1da7655dec7f5e374944095b AS build
# an ARG before the first FROM can parameterise the base image itself
ARG NODE_VERSION=22
@@ -174,7 +174,7 @@ CMD ["nginx", "-g", "daemon off;"]
```dockerfile
# a compiled binary on a near-empty base
FROM golang:1.23 AS build
FROM golang:1.27@sha256:2920bb124f1a2e12a1d39f0cab756ae0068441ee1da7655dec7f5e374944095b AS build
WORKDIR /src
COPY . .
RUN CGO_ENABLED=0 go build -o /out/app ./cmd/app
+1 -1
View File
@@ -220,7 +220,7 @@ COPY --from=builder /app/dist /usr/share/nginx/html
你可以使用 `AS <name>` 为每个阶段命名,并在之后通过 `--from=<name>` 引用它。
```Dockerfile
FROM golang:1.21 AS build
FROM golang:1.27@sha256:2920bb124f1a2e12a1d39f0cab756ae0068441ee1da7655dec7f5e374944095b AS build
WORKDIR /src
COPY . .
RUN go build -o myapp