diff --git a/Dockerfile b/Dockerfile index 86703430a..66d50380e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,14 +6,7 @@ FROM xmppxsf/xeps-base:latest as build ARG NCORES=1 ARG TARGETS="html inbox-html inbox-xml pdf xeplist refs xml" -COPY *.xml xep.* *.css *.xsl *.js *.xsl Makefile /src/ -COPY resources/*.pdf /src/resources/ -COPY tools/*.py /src/tools/ -COPY inbox/*.xml inbox/*.ent inbox/*.dtd /src/inbox/ -COPY texml-xsl/*.xsl /src/texml-xsl/ - -WORKDIR /src -RUN OUTDIR=/var/www/html/extensions/ make -j$NCORES $TARGETS +RUN --mount=target=/xeps make -C /xeps -j$NCORES $TARGETS OUTDIR=/var/www/html/extensions RUN bash -c 'rm -f /var/www/html/extensions/*.{log,aux,toc,tex,tex.xml,out}' FROM nginx:1-alpine diff --git a/Makefile b/Makefile index 26efb1ba7..34a74a8e4 100644 --- a/Makefile +++ b/Makefile @@ -76,8 +76,11 @@ inbox-xml: $(OUTDIR)/inbox $(proto_xep_xmls) .PHONY: pdf pdf: $(xep_pdfs) +$(REFSDIR)/LICENSE: refs-LICENSE + cp $< $@ + .PHONY: refs -refs: $(xep_refs) +refs: $(xep_refs) $(REFSDIR)/LICENSE .PHONY: examples examples: $(xep_examples) diff --git a/refs-LICENSE b/refs-LICENSE new file mode 100644 index 000000000..64791b8c3 --- /dev/null +++ b/refs-LICENSE @@ -0,0 +1,9 @@ +To the extent possible under law, the XMPP Standards Foundation (XSF) +has waived all copyright and related or neighboring rights to XSF's +bibliographic data. + +That is, the bibliographic data, which is also accessible via +https://xmpp.org/extensions/refs/, is put in the public domain via +CC0 1.0 [1]. + +1: https://creativecommons.org/publicdomain/zero/1.0/