🎉 start the project

This commit is contained in:
loveuer
2025-07-09 22:50:23 +08:00
commit 84348f9eaf
31 changed files with 9990 additions and 0 deletions

17
Dockerfile Normal file
View File

@ -0,0 +1,17 @@
FROM golang:1.24.2-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download && go mod verify
COPY . .
RUN go build -ldflags "-s -w" -X loveuer/utodo/internal/opt.Version=$(git describe --tags --always --dirty) -o utodo .
FROM alpine:3.19.0
COPY --from=builder /app/utodo /usr/local/bin/utodo
CMD ["utodo"]