Skip to content

Commit 548f426

Browse files
committed
feat(docker): Splice SILE's vendored rocks tree into system LuaRocks
1 parent 157bdaa commit 548f426

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,16 @@ LABEL org.opencontainers.image.revision="$REVISION"
9595

9696
COPY build-aux/docker-fontconfig.conf /etc/fonts/conf.d/99-docker.conf
9797

98+
# Inform the system Lua manifest where SILE's vendored modules are so they are
99+
# available to 3rd party packages even outside of SILE's runtime. Most notably
100+
# useful so that luarocks can find them as existing dependencies when
101+
# installing 3rd party modules. We replace the user tree instead of inserting
102+
# a new one because it doesn't make sense in Docker anyway and the default
103+
# priority works out better having it first.
104+
RUN luarocks config rocks_trees[1].root /usr/local/share/sile/lua_modules && \
105+
luarocks config rocks_trees[1].name sile && \
106+
luarocks config deps_mode all
107+
98108
COPY --from=builder /pkgdir /
99109
COPY --from=builder /src/src/sile-entry.sh /usr/local/bin
100110

0 commit comments

Comments
 (0)