Files
enkly-ai/services/conversation/Dockerfile
enkly 79ce8dc4c0
Some checks failed
Go CI Pipeline / build_and_test (push) Failing after 22m0s
Init Project
2026-10-30 18:06:55 +01:00

18 lines
600 B
Docker

# See services/iam/Dockerfile for the pattern explanation.
FROM golang:1.23-bookworm AS build
WORKDIR /src
COPY go.mod go.sum* ./
COPY gen/ gen/
COPY pkg/ pkg/
COPY services/conversation/ services/conversation/
RUN go mod tidy
RUN CGO_ENABLED=0 go build -o /out/conversation-server ./services/conversation/cmd/server
FROM gcr.io/distroless/static-debian12:nonroot
WORKDIR /app
COPY --from=build /out/conversation-server ./conversation-server
COPY --from=build /src/services/conversation/migrations ./migrations
ENV ENKLY_CONVERSATION_GRPC_ADDR=:9003
EXPOSE 9003
ENTRYPOINT ["./conversation-server"]