api-gateway with depends_on users-api

This commit is contained in:
stackops
2026-04-09 16:53:42 +03:00
commit eae5f6165d
4 changed files with 127 additions and 0 deletions

12
Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM golang:1.25-alpine AS builder
WORKDIR /src
COPY go.mod ./
RUN go mod download
COPY . .
RUN go build -o /api-gateway .
FROM alpine:3.20
RUN apk add --no-cache ca-certificates
COPY --from=builder /api-gateway /usr/local/bin/api-gateway
EXPOSE 8080
ENTRYPOINT ["api-gateway"]