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

This commit is contained in:
renovate[bot] authored and GitHub committed 2026-11-06 03:00:57 +00:00
1 parent e7758934a8
commit 352033cfb1
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:e519d3b0a5b285e5aa53ab9eef02bc6bbb9cb04608389b743a136a9ce75f0d1e 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:e519d3b0a5b285e5aa53ab9eef02bc6bbb9cb04608389b743a136a9ce75f0d1e 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:e519d3b0a5b285e5aa53ab9eef02bc6bbb9cb04608389b743a136a9ce75f0d1e AS build
WORKDIR /src
COPY . .
RUN go build -o myapp