交付双端基础、实时联系人和隔离浏览器

This commit is contained in:
xhgit committed 2026-11-13 18:03:32 +08:00
1 parent 43687d5e7e
commit 67fef3ff87
59 files changed
+5094 -1

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
FROM golang:1.27.4-alpine AS build
WORKDIR /src
ARG GOPROXY=https://proxy.golang.org,direct
ENV GOPROXY=${GOPROXY}
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -trimpath -o /out/xhchat-api ./cmd/api
FROM alpine:3.23
COPY --from=build /out/xhchat-api /usr/local/bin/xhchat-api
USER 65532:65532
EXPOSE 8080
ENTRYPOINT ["xhchat-api"]