Files
tenant-registry/Dockerfile
T
sharang 93cfbd6e2b
ci / shared (pull_request) Successful in 5s
ci / test (pull_request) Successful in 10s
ci / image (pull_request) Has been skipped
fix(dev): tenant-registry default port :8080 → :8090
Keycloak owns :8080 in the dev stack (docker-compose binds host:8080).
Running tenant-registry on the same port made 'make dev' refuse to
boot. Bump the default to :8090 across config, Makefile, Dockerfile,
.env.example, and README. ADDR env var still overrides if needed.

Production is unaffected — each service is in its own Orca container
with its own port-namespace.

Refs: M5.1 (unblocks portal local dev)
2026-05-19 11:44:19 +02:00

16 lines
403 B
Docker

# Multi-stage build for tenant-registry.
FROM golang:1.24-alpine AS build
WORKDIR /src
COPY go.mod ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o /out/tenant-registry ./cmd/server
FROM gcr.io/distroless/static-debian12:nonroot
WORKDIR /
COPY --from=build /out/tenant-registry /tenant-registry
USER nonroot:nonroot
EXPOSE 8090
ENTRYPOINT ["/tenant-registry"]