fix(docker): fix Dockerfile
Some checks failed
build / Go-Build (push) Failing after 11m3s
build / Go-Build (pull_request) Successful in 28s

This commit is contained in:
2026-02-09 23:23:44 +01:00
parent 7c5d319043
commit 56abe1dee4
3 changed files with 10 additions and 4 deletions

View File

@@ -1,11 +1,16 @@
# Build stage
FROM golang:latest AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -v -o svg-templater ./...
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"]