1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-10 03:15:00 -05:00
xeps/Dockerfile
Edwin Mons 8a3efe6600 Build refs for Docker image
xmpp.org/extensions/refs wasn't built.  As these files are referenced
from xml2rfc.tools.ietf.org, we probably should.
2018-02-08 08:50:27 +01:00

21 lines
569 B
Docker

# Builds all XEPs by default, HTML & PDF
# docker build . --build-arg NCORES=X --build-arg TARGETS="html pdf"
# from Dockerfile.base
FROM xmppxsf/xeps-base:latest
ARG NCORES=1
ARG TARGETS="html inbox-html inbox-xml pdf xeplist refs"
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
EXPOSE 80
CMD /usr/sbin/nginx -g 'daemon off;'