gorm wire

This commit is contained in:
2025-05-07 14:12:53 +08:00
parent 461531c308
commit 68606c76f9
111 changed files with 1726 additions and 5809 deletions

16
deploys/Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
# Build Stage
FROM golang:1.24.0-alpine3.21 AS builder
ENV GO111MODULE=on \
GOPROXY=https://goproxy.cn,direct
WORKDIR /app
COPY ../.. .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o testpaper main.go
# Run Stage
FROM zc1185230223/alpine:3.21
WORKDIR /app
COPY --from=builder /app/testpaper .
RUN touch config.yaml
EXPOSE 15001
CMD ["/app/testpaper", "api", "-c", "config.yaml"]