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

This commit is contained in:
renovate[bot] authored and GitHub committed 2026-10-26 23:35:20 +00:00
1 parent 47943c76ac
commit afc3028b1c
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:f20d83a83e18dbd2a4714b8ffd4b30b287b6243962dd75608e86abcc63ba4efc 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:f20d83a83e18dbd2a4714b8ffd4b30b287b6243962dd75608e86abcc63ba4efc 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:f20d83a83e18dbd2a4714b8ffd4b30b287b6243962dd75608e86abcc63ba4efc AS build
WORKDIR /src
COPY . .
RUN go build -o myapp