mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-24 02:02:16 -05:00
Add NCORES and TARGETS as build params
This commit is contained in:
parent
8e9f9b3911
commit
69d3ab9ed1
@ -1,10 +1,16 @@
|
||||
# Builds all XEPs by default, HTML & PDF
|
||||
# docker build . --build-arg NCORES=X --build-arg TARGETS="target1 target2"
|
||||
# from Dockerfile.base
|
||||
FROM xmppxsf/xeps-base:latest
|
||||
|
||||
ARG NCORES=1
|
||||
ARG TARGETS="html pdf"
|
||||
|
||||
COPY *.xml xep.* *.css *.xsl *.js *.xsl Makefile /src/
|
||||
COPY resources/*.pdf /src/resources/
|
||||
|
||||
WORKDIR /src
|
||||
RUN OUTDIR=/var/www/html/extensions/ make -j5 html pdf
|
||||
RUN OUTDIR=/var/www/html/extensions/ make -j$NCORES $TARGETS
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
|
@ -1,3 +1,7 @@
|
||||
# Base docker image for building XEPs
|
||||
# Sets up directories and dependencies
|
||||
# docker build . -t xmppxsf/xeps-base -f Dockerfile.base
|
||||
|
||||
FROM debian:8
|
||||
MAINTAINER XSF Editors <editor@xmpp.org>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user