sync: 同步飞书机器人 v1.0.4 并脱敏
This commit is contained in:
+4
-9
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user