This commit is contained in:
matst80
2025-05-13 20:42:20 +02:00
commit 8ae2d5f554
2 changed files with 152 additions and 0 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
# syntax=docker/dockerfile:1
FROM golang:alpine AS build-stage
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY proto ./proto
COPY *.go ./
RUN CGO_ENABLED=0 GOOS=linux go build -o /go-order-manager
FROM gcr.io/distroless/base-debian11
WORKDIR /
COPY --from=build-stage /go-order-manager /go-order-manager
ENTRYPOINT ["/go-order-manager"]