Skip to content

Commit eb34d35

Browse files
committed
Alpine: Install rsvg-convert package if it's available
The `rsvg-convert` binary is shipped in the `rsvg-convert` package since Alpine 3.17. STACK=alpine RELEASE=3.2, 3.1.13 Fixes: #239
1 parent a78e734 commit eb34d35

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

alpine/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,9 @@ COPY --from=alpine-builder \
9595

9696
# Additional packages frequently used during conversions
9797
# NOTE: `libsrvg`, pandoc uses `rsvg-convert` for working with svg images.
98-
RUN apk --no-cache add \
99-
librsvg
98+
# FIXME: Alpine 3.17 and later ships the binary in the rsvg-convert package.
99+
RUN apk --no-cache add librsvg; \
100+
apk --no-cache add rsvg-convert || true
100101

101102
# LaTeX #################################################################
102103
FROM alpine-core as alpine-latex

0 commit comments

Comments
 (0)