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

This commit is contained in:
renovate[bot] authored and GitHub committed 2026-11-24 14:12:51 +00:00
1 parent ea75c38a09
commit a062a3265f
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:3102e2c7eeee6e16de01ca3f35c56434696f70702a30b3d564b0244560981bb0 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:3102e2c7eeee6e16de01ca3f35c56434696f70702a30b3d564b0244560981bb0 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:3102e2c7eeee6e16de01ca3f35c56434696f70702a30b3d564b0244560981bb0 AS build
WORKDIR /src
COPY . .
RUN go build -o myapp