fix(docker): adjust dockerfile for resvg
This commit is contained in:
@@ -25,3 +25,4 @@ go.work.sum
|
||||
# env file
|
||||
.env
|
||||
storage.db
|
||||
.DS_Store
|
||||
|
||||
+5
-2
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user