fix(docker): adjust dockerfile for resvg
build / Go-Build (push) Has been cancelled
build / Go-Build (pull_request) Has been cancelled

This commit is contained in:
2026-04-28 20:23:38 +02:00
parent 26e543ac48
commit f296eeeec7
2 changed files with 6 additions and 2 deletions
+1
View File
@@ -25,3 +25,4 @@ go.work.sum
# env file
.env
storage.db
.DS_Store
+5 -2
View File
@@ -7,10 +7,13 @@ COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -v -o svg-templater ./cmd/svg-templater
# Final stage
FROM alpine:latest
FROM debian:bookworm-slim
WORKDIR /root/
EXPOSE 3000
VOLUME ["/var/lib/svg-templater"]
RUN apk add inkscape fontconfig
RUN apt update && apt install -y curl tar \
&& curl -L https://github.com/linebender/resvg/releases/download/v0.47.0/resvg-linux-x86_64.tar.gz | tar -xz \
&& mv resvg /usr/local/bin/resvg \
&& chmod +x /usr/local/bin/resvg
COPY --from=builder /app/svg-templater /usr/local/bin/svg-templater
CMD ["svg-templater"]