mirror of
https://github.com/EZ-Api/ez-api.git
synced 2026-01-13 17:47:51 +00:00
feat(api): add /auth/whoami endpoint and build automation
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user