1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-24 18:22:24 -05:00
xeps/Dockerfile

18 lines
417 B
Docker
Raw Normal View History

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