Files
svg-templater/Dockerfile
Tueem 56abe1dee4
Some checks failed
build / Go-Build (push) Failing after 11m3s
build / Go-Build (pull_request) Successful in 28s
fix(docker): fix Dockerfile
2026-02-09 23:23:44 +01:00

17 lines
403 B
Docker

# 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"]