Commit c4a1db58 authored by Sparkf's avatar Sparkf 🏙️
Browse files

use sustech mirrors, add chinese fonts

parent 09a38afa
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
# do not use quotes (")
MYDOMAIN=MYDOMAIN.TLD
MYMAIL=MYEMAIL@MYDOMAIN.TLD
MYDATA=/data
#MYDOMAIN=MYDOMAIN.TLD
#MYMAIL=MYEMAIL@MYDOMAIN.TLD
#MYDATA=/data
LOGIN_TEXT=username
COLLAB_TEXT=Direct share with collaborators is enabled only for activated users!
ADMIN_IS_SYSADMIN=false
+12 −2
Original line number Diff line number Diff line
@@ -13,11 +13,17 @@ ARG admin_is_sysadmin
# set workdir (might solve issue #2 - see https://stackoverflow.com/questions/57534295/)
WORKDIR /overleaf/services/web

# change apt source
RUN sed -i s@/archive.ubuntu.com/@/mirrors.sustech.edu.cn/@g /etc/apt/sources.list
RUN sed -i s@/security.ubuntu.com/@/mirrors.sustech.edu.cn/@g /etc/apt/sources.list

RUN tlmgr option repository https://mirrors.sustech.edu.cn/CTAN/systems/texlive/tlnet

    # install latest npm
RUN npm install -g npm && \
RUN npm install -g npm --registry=https://registry.npmmirror.com && \
    ## clean cache (might solve issue #2)
    # npm cache clean --force && \
    npm install ldap-escape ldapts-search ldapts@3.2.4 && \
    npm install ldap-escape ldapts-search ldapts@3.2.4 --registry=https://registry.npmmirror.com && \
    # npm install bcrypt@5.0.0 && \
    apt-get update && \
    apt-get -y install libxml-libxslt-perl cpanminus libbtparse2 python-pygments && \
@@ -27,6 +33,10 @@ RUN npm install -g npm && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*

# fonts
RUN apt install fonts-noto-cjk fonts-noto-cjk-extra fonts-noto-color-emoji xfonts-wqy fonts-font-awesome


# latex-bin must be on path to be found in compilation process
# needed for biber epstopdf and others
ENV PATH="/usr/local/texlive/2023/bin/x86_64-linux:${PATH};"