-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
68 lines (58 loc) · 2.2 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
FROM sharelatex/sharelatex:2.6.1
#FROM sharelatex/sharelatex:2.4.2
#FROM aifajupyter/aifa-overleaf:test
#FROM aifajupyter/sharelatex:20201028-1
LABEL [email protected]
# update tlmgr
RUN tlmgr update --self --all
# install full latex
#RUN tlmgr install scheme-full
RUN tlmgr install collection-latex
RUN tlmgr install collection-mathscience
RUN tlmgr install collection-fontsrecommended
RUN tlmgr install collection-langgerman
RUN tlmgr install collection-langfrench
RUN tlmgr install collection-langitalian
RUN tlmgr install collection-langspanish
RUN tlmgr install collection-langportuguese
RUN tlmgr install collection-langgreek
RUN tlmgr install collection-langpolish
RUN tlmgr install collection-bibtexextra
RUN tlmgr install collection-formatsextra
RUN tlmgr install collection-fontsextra
RUN tlmgr install collection-fontsrecommended
RUN tlmgr install collection-humanities
RUN tlmgr install collection-latexextra
RUN tlmgr install collection-latexrecommended
RUN tlmgr install collection-luatex
RUN tlmgr install collection-pictures
RUN tlmgr install collection-pstricks
RUN tlmgr install collection-publishers
RUN tlmgr install collection-xetex
# add ldap
#RUN (cd /usr/lib/node_modules/npm; npm install ldapjs)
RUN npm install ldapjs
# copy the LDAP Auth Manager from
# https://github.com/worksasintended/overleaf_ldap
COPY patches/AuthenticationManager.js /var/www/sharelatex/web/app/src/Features/Authentication/AuthenticationManager.js
# copy the patched Language detection part
COPY patches/Translations.js /var/www/sharelatex/web/app/src/infrastructure/Translations.js
# locale corrections
COPY locales/de.json /var/www/sharelatex/web/locales/de.json
## install the wrapper
#COPY timeout_wrapper /usr/local/texlive/2020/bin/x86_64-linux/timeout_wrapper
#RUN chmod 755 /usr/local/texlive/2020/bin/x86_64-linux/timeout_wrapper
#
## move the files away
#WORKDIR /usr/local/texlive/2020/bin/x86_64-linux/
#RUN mv pdftex pdftex.orig
#RUN ln -s timeout_wrapper pdftex
#RUN mv xetex xetex.orig
#RUN ln -s timeout_wrapper xetex
#RUN mv luahbtex luahbtex.orig
#RUN ln -s timeout_wrapper luahbtex
#
## reset the workdir
#WORKDIR /
# adjust the latemk command with timeout option
COPY latexmkrc /var/www/.latexmkrc