- Complete project structure with Next.js frontend - GraphQL API backend with Apollo Server - Portal application with NextAuth - Crossplane Proxmox provider - GitOps configurations - CI/CD pipelines - Testing infrastructure (Vitest, Jest, Go tests) - Error handling and monitoring - Security hardening - UI component library - Documentation
28 lines
425 B
Docker
28 lines
425 B
Docker
FROM golang:1.21-alpine AS builder
|
|
|
|
WORKDIR /workspace
|
|
|
|
# Copy go mod files
|
|
COPY go.mod go.mod
|
|
COPY go.sum go.sum
|
|
|
|
# Download dependencies
|
|
RUN go mod download
|
|
|
|
# Copy source code
|
|
COPY . .
|
|
|
|
# Build
|
|
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o provider ./cmd/provider
|
|
|
|
FROM alpine:latest
|
|
|
|
RUN apk --no-cache add ca-certificates
|
|
|
|
WORKDIR /root/
|
|
|
|
COPY --from=builder /workspace/provider .
|
|
|
|
ENTRYPOINT ["./provider"]
|
|
|