-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (28 loc) · 1.32 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM sharelatex/sharelatex
ENV DEBIAN_FRONTEND noninteractive
RUN add-apt-repository ppa:gregorio-project/gregorio ; apt-get update ; \
apt-get -y --force-yes install --no-install-recommends \
fonts-linuxlibertine lmodern gregorio
RUN cd /usr/local/texlive/2* && \
wget http://mirror.ctan.org/systems/texlive/tlnet/update-tlmgr-latest.sh ; \
sh update-tlmgr-latest.sh -- --upgrade ; \
tlmgr update --self --all && \
rm -r /usr/local/texlive/2*/tlpkg/backups/
RUN tlmgr install collection-music collection-humanities \
collection-latexrecommended collection-luatex \
collection-fontsrecommended libertine \
collection-langfrench collection-langeuropean \
xkeyval keycommand xstring environ minibox trimspaces currfile && \
mktexlsr
RUN wget \
'http://download.linuxaudio.org/lilypond/binaries/linux-64/'$(wget \
'http://download.linuxaudio.org/lilypond/binaries/linux-64/' \
-O- 2>&1 | grep -oh '"lilypond.*.sh"' | tail -1 | sed s/\"//g) ; \
sh ./lilypond*.sh --batch ; \
rm ./lilypond*.sh
# RUN apt-get -y --force-yes install --no-install-recommends lilypond
RUN sed -i s/'"-interaction=batchmode"'/'"-interaction=batchmode", "-shell-escape"'/ \
/var/www/sharelatex/clsi/app/js/LatexRunner.js
EXPOSE 80
WORKDIR /
ENTRYPOINT ["/sbin/my_init"]