1
0
mirror of https://github.com/moparisthebest/xeps synced 2025-02-20 04:31:49 -05:00
xeps/Dockerfile

21 lines
564 B
Docker
Raw Normal View History

2017-07-11 19:23:46 +02:00
# Builds all XEPs by default, HTML & PDF
2017-08-17 18:13:43 -05:00
# docker build . --build-arg NCORES=X --build-arg TARGETS="html pdf"
2017-07-11 19:23:46 +02:00
# from Dockerfile.base
FROM xmppxsf/xeps-base:latest
2017-07-11 19:23:46 +02:00
ARG NCORES=1
2017-08-23 13:26:36 +02:00
ARG TARGETS="html inbox-html inbox-xml pdf xeplist"
2017-07-11 19:23:46 +02:00
COPY *.xml xep.* *.css *.xsl *.js *.xsl Makefile /src/
COPY resources/*.pdf /src/resources/
2017-08-23 13:26:36 +02:00
COPY tools/*.py /src/tools/
2017-08-23 13:22:06 +02:00
COPY inbox/*.xml inbox/*.ent inbox/*.dtd /src/inbox/
COPY texml-xsl/*.xsl /src/texml-xsl/
WORKDIR /src
2017-07-11 19:23:46 +02:00
RUN OUTDIR=/var/www/html/extensions/ make -j$NCORES $TARGETS
EXPOSE 80
CMD /usr/sbin/nginx -g 'daemon off;'