Dockerfile.sync raw

   1  # gRPC Negentropy Sync Service Dockerfile
   2  
   3  FROM golang:1.24-alpine AS builder
   4  
   5  RUN apk add --no-cache git make
   6  
   7  WORKDIR /build
   8  COPY . .
   9  
  10  # Build the sync service binary
  11  RUN GOTOOLCHAIN=auto CGO_ENABLED=0 go build -o orly-sync-negentropy ./cmd/orly-sync-negentropy
  12  
  13  # Runtime image
  14  FROM alpine:3.19
  15  
  16  RUN apk add --no-cache ca-certificates
  17  
  18  WORKDIR /app
  19  COPY --from=builder /build/orly-sync-negentropy /app/
  20  
  21  # Skip grpc-health-probe - not essential for testing
  22  
  23  EXPOSE 50064
  24  
  25  CMD ["/app/orly-sync-negentropy"]
  26