ResumeLens/Dockerfile
Hayden Hargreaves 5500449334 feat: docker and nginx
Working on deployments
2026-03-31 12:40:57 -07:00

23 lines
402 B
Docker

# Build stage
FROM golang:1.25.5-alpine AS builder
RUN apk add --no-cache git ca-certificates
WORKDIR /build
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o server ./cmd/server
# Runtime stage
FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /app
COPY --from=builder /build/server .
EXPOSE 3000
CMD ["./server"]