update once

This commit is contained in:
XOF
2026-01-06 02:25:24 +08:00
commit 7bf4f27be3
25 changed files with 4587 additions and 0 deletions

15
Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
# 构建阶段
FROM golang:alpine AS builder
WORKDIR /build
COPY . .
RUN go build -ldflags="-s -w" -o godns .
# 运行阶段
FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /godns
COPY --from=builder /build/godns .
COPY data ./data
VOLUME ["/godns/data"]
ENTRYPOINT ["/godns/godns"]