sync: 同步飞书机器人 v1.0.4 并脱敏

This commit is contained in:
MiFaZhan
2026-10-29 14:19:44 +08:00
parent 5732bf3384
commit 24ae53bc0b
7 changed files with 305 additions and 119 deletions
+4 -9
View File
@@ -1,22 +1,17 @@
FROM golang:1.25-alpine AS build
ARG GOPROXY=https://goproxy.cn,https://goproxy.io,https://proxy.golang.org,direct
ARG BASE_REGISTRY=docker.io/library
FROM ${BASE_REGISTRY}/golang:1.25-alpine AS build
ARG GOPROXY=https://goproxy.cn|https://goproxy.io|https://proxy.golang.org|direct
ENV GOPROXY=${GOPROXY}
WORKDIR /src
COPY go.mod go.sum ./
RUN apk add --no-cache ca-certificates
RUN go mod download
COPY . ./
RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags='-s -w' -o /out/iotlcm-bot ./cmd/iotlcm-bot
FROM scratch
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=build /out/iotlcm-bot /usr/local/bin/iotlcm-bot
USER 65532:65532
ENTRYPOINT ["/usr/local/bin/iotlcm-bot"]