crimata-infra/Dockerfile
Andrew Gundersen d9619350f8 Initial commit
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-22 13:31:38 -05:00

13 lines
290 B
Docker

FROM golang:1.23-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o infra ./cmd/server
FROM alpine:3.20
RUN apk --no-cache add ca-certificates
WORKDIR /app
COPY --from=builder /app/infra .
EXPOSE 9000
CMD ["./infra"]