初始提交

This commit is contained in:
2026-01-05 16:44:08 +08:00
commit d590af6b2e
8 changed files with 406 additions and 0 deletions

16
Dockerfile Normal file
View File

@ -0,0 +1,16 @@
FROM golang:1.25.5-alpine3.23 AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o app .
FROM alpine:3.23
WORKDIR /root/
COPY --from=builder /app/app .
CMD ["./app"]