users-api service

This commit is contained in:
stackops
2026-04-09 16:53:39 +03:00
commit 31d1149176
4 changed files with 65 additions and 0 deletions

11
Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM golang:1.25-alpine AS builder
WORKDIR /src
COPY go.mod ./
RUN go mod download
COPY . .
RUN go build -o /users-api .
FROM alpine:3.20
COPY --from=builder /users-api /usr/local/bin/users-api
EXPOSE 8080
ENTRYPOINT ["users-api"]