mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-28 04:02:20 -05:00
f87a03a97c
We were asked [1] to state that the XEP bibliographic data is openly available and free of charge if we want it to be consumed by third parties. This weas previously merged as747738804a
("Add license for bibliographic data"), but unfortunately later reverted in59b2a5ca15
("Revert "Add license for bibliographic data"", https://github.com/xsf/xeps/pull/1221). However, the fix for the broken docker build is trivial: simply also copy refs-LICENSE into the container. This commit does that. Fixes #1219. 1: https://github.com/ietf-tools/bibxml-service/issues/302#issuecomment-1274686153
24 lines
883 B
Docker
24 lines
883 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 as build
|
|
|
|
ARG NCORES=1
|
|
ARG TARGETS="html inbox-html inbox-xml pdf xeplist refs xml"
|
|
|
|
COPY *.xml xep.* *.css *.xsl *.js *.xsl Makefile refs-LICENSE /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 bash -c 'rm -f /var/www/html/extensions/*.{log,aux,toc,tex,tex.xml,out}'
|
|
|
|
FROM nginx:1-alpine
|
|
RUN mkdir /usr/share/nginx/html/extensions/
|
|
COPY --from=build /var/www/html/extensions/ /usr/share/nginx/html/extensions/
|
|
RUN sed -ri '/root\s+\/usr\/share\/nginx\/html/s/^(.+)$/\1\nautoindex on;/' /etc/nginx/conf.d/default.conf
|
|
EXPOSE 80
|