Skip to content

Commit dd12b26

Browse files
committed
Dockerfile: bind mount the build context
Instead of copying individual files into /src, we simply bind mount the build context, which is typically the XEPs repo, and invoke 'make' with the givne targets on that.
1 parent 05fa147 commit dd12b26

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Diff for: Dockerfile

+1-8
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,7 @@ FROM xmppxsf/xeps-base:latest as build
66
ARG NCORES=1
77
ARG TARGETS="html inbox-html inbox-xml pdf xeplist refs xml"
88

9-
COPY *.xml xep.* *.css *.xsl *.js *.xsl Makefile /src/
10-
COPY resources/*.pdf /src/resources/
11-
COPY tools/*.py /src/tools/
12-
COPY inbox/*.xml inbox/*.ent inbox/*.dtd /src/inbox/
13-
COPY texml-xsl/*.xsl /src/texml-xsl/
14-
15-
WORKDIR /src
16-
RUN OUTDIR=/var/www/html/extensions/ make -j$NCORES $TARGETS
9+
RUN --mount=target=/xeps make -C /xeps -j$NCORES $TARGETS OUTDIR=/var/www/html/extensions
1710
RUN bash -c 'rm -f /var/www/html/extensions/*.{log,aux,toc,tex,tex.xml,out}'
1811

1912
FROM nginx:1-alpine

0 commit comments

Comments
 (0)