WIP: Add SVG Templating #10

Draft
tueem wants to merge 15 commits from feat/template into dev
2 changed files with 6 additions and 2 deletions
Showing only changes of commit f296eeeec7 - Show all commits
+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"]