init gateway-service

This commit is contained in:
2023-09-27 17:19:25 +01:00
parent b725dae0f9
commit 4aa5cd6dfc
29 changed files with 6871 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
FROM golang:1.20 AS build
WORKDIR /app
# Install required modules
COPY go.mod go.sum ./
RUN go mod download
# Build the service
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /bin/gateway-service ./cmd/gateway-service
# Runtime environment (for minifying image size)
FROM gcr.io/distroless/static-debian12
COPY --from=build /bin/gateway-service .
EXPOSE 3000
CMD ["./gateway-service"]