mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-10-18 19:12:54 +00:00
Docker: - Add production-ready Dockerfiles for all microservices - Optimize for multi-stage builds and minimal image sizes Kubernetes: - Add namespace and service manifests - Include MongoDB and Redis deployment configurations - Configure API server and charging engine deployments Documentation: - Add comprehensive README with platform overview - Include technology stack and quick start instructions - Provide prerequisites and setup guidance
23 lines
355 B
Docker
23 lines
355 B
Docker
FROM golang:1.26-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY apps/api-server/go.mod apps/api-server/go.sum ./
|
|
RUN go mod download
|
|
|
|
COPY apps/api-server/ ./
|
|
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -o api-server .
|
|
|
|
FROM alpine:latest
|
|
|
|
RUN apk --no-cache add ca-certificates
|
|
|
|
WORKDIR /root/
|
|
|
|
COPY --from=builder /app/api-server .
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["./api-server"]
|