feat(api): add /auth/whoami endpoint and build automation

This commit is contained in:
2025-12-25 14:54:52 +08:00
parent 8e6d86edd7
commit 30f15a84b5
7 changed files with 397 additions and 1 deletions

View File

@@ -1,12 +1,17 @@
FROM golang:1.24-alpine AS builder
# Install make for Makefile support
RUN apk add --no-cache make
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -o ez-api ./cmd/server
# Use Makefile to generate swagger and build
RUN make build
FROM alpine:latest