This commit is contained in:
zwgczx committed 2026-03-26 16:43:58 +08:00
1 parent e72012cfc2
commit 85eb501a42
11 files changed
+145 -2293

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
FROM golang:1.24-alpine AS builder
WORKDIR /src
COPY docker/dist-server/ ./
RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/dist-server .
FROM scratch
WORKDIR /www
COPY --from=builder /out/dist-server /dist-server
COPY dist/ /www/
EXPOSE 80
ENTRYPOINT ["/dist-server"]