feat: .git buildkit
CI / changes (push) Successful in 1s
CI / docker-bff (push) Failing after 2s
CI / docker-product (push) Failing after 1s
CI / docker-admin (push) Failing after 1s

This commit is contained in:
zzw
2026-08-11 18:17:45 +08:00
parent 136d6e30e5
commit 84433273c6
8 changed files with 26 additions and 98 deletions
+1
View File
@@ -0,0 +1 @@
etc/bff.yaml
+7 -2
View File
@@ -1,3 +1,5 @@
# syntax=docker/dockerfile:1
FROM golang:1.26.5-alpine AS builder
WORKDIR /src
@@ -11,10 +13,13 @@ COPY pkg ./pkg
COPY bff/go.mod bff/go.sum ./bff/
WORKDIR /src/bff
RUN go mod download
RUN --mount=type=cache,target=/go/pkg/mod \
go mod download
COPY bff/ ./
RUN go build -ldflags="-s -w" -o /out/bff .
RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
go build -ldflags="-s -w" -o /out/bff .
FROM alpine:3.22
-29
View File
@@ -1,29 +0,0 @@
Name: bff-service
Host: 0.0.0.0
Port: 10000
Nacos:
Hosts:
- rnacos:8848
NamespaceId: test
Group: LONE_SERVICES
RegisterIP: bff
Response:
IsDebug: true # true 不加密
EncryptKey: "M17fcaPeHDr05H17fcaPH1deDH17l3Bd"
Upstreams:
- Name: product
Grpc:
Target: product-service
Timeout: 5000
ProtoSets:
- etc/product.pb
- Name: admin
Grpc:
Target: admin-service
Timeout: 5000
ProtoSets:
- etc/admin.pb