# Build stage FROM golang:latest AS builder WORKDIR /app COPY go.mod go.sum ./ RUN go mod download COPY . . RUN CGO_ENABLED=0 GOOS=linux go build -v -o svg-templater ./cmd/svg-templater # Final stage FROM alpine:latest WORKDIR /root/ EXPOSE 3000 VOLUME ["/var/lib/svg-templater"] RUN apk add inkscape fontconfig COPY --from=builder /app/svg-templater /usr/local/bin/svg-templater CMD ["svg-templater"]