chore: diff and dockerfile
CI / changes (push) Successful in 14s
CI / docker-bff (push) Successful in 25s
CI / docker-product (push) Successful in 24s
CI / docker-admin (push) Successful in 23s
CI / docker-user (push) Successful in 23s
CI / docker-ad (push) Successful in 24s
CI / docker-chore (push) Successful in 23s
CI / docker-express (push) Failing after 3s
CI / docker-sale (push) Successful in 24s

This commit is contained in:
zzw
2026-08-28 11:03:45 +08:00
32 changed files with 969 additions and 173 deletions
+39
View File
@@ -0,0 +1,39 @@
FROM golang:1.26.5-alpine AS builder
WORKDIR /src
ENV GOPROXY=https://goproxy.cn,direct \
CGO_ENABLED=0 \
GOOS=linux \
GOARCH=amd64
COPY pkg ./pkg
COPY go.mod go.sum ./
RUN --mount=type=cache,target=/go/pkg/mod \
go mod download
COPY rpc/ ./rpc
COPY services/express/ ./services/express/
WORKDIR /src/services/express
RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
go build -ldflags="-s -w" -o /out/main ./
FROM alpine:3.22
WORKDIR /app
ENV TZ=Asia/Shanghai
RUN apk add --no-cache tzdata \
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone
COPY --from=builder /out/main .
EXPOSE 10600
CMD ["./main", "-f", "etc/express.yaml"]