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

This commit is contained in:
renovate[bot] authored and GitHub committed 2026-10-27 03:25:44 +00:00
1 parent 47943c76ac
commit c72955cc95
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:9048d5e7751706200eb1719c7dae0436950d362f29a1da91fa05e5c63867c60f 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:9048d5e7751706200eb1719c7dae0436950d362f29a1da91fa05e5c63867c60f 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:9048d5e7751706200eb1719c7dae0436950d362f29a1da91fa05e5c63867c60f AS build
WORKDIR /src
COPY . .
RUN go build -o myapp