Block a user
sharelatex (latest)
Published 2025-12-06 15:07:27 +00:00 by weakboson
Installation
docker pull git.quantum-field.net/weakboson/sharelatex:latestsha256:295e78c9935c7be560f10756a61fac0bf2ef87f6fdcb8f8c27dbaf6dbcb368cbImage Layers
| ARG RELEASE |
| ARG LAUNCHPAD_BUILD_ARCH |
| LABEL org.opencontainers.image.ref.name=ubuntu |
| LABEL org.opencontainers.image.version=24.04 |
| ADD file:1d7c45546e94b90e941c5bf5c7a5d415d7b868581ad96171d4beb76caa8ab683 in / |
| CMD ["/bin/bash"] |
| ARG QEMU_ARCH |
| COPY . /bd_build # buildkit |
| RUN |1 QEMU_ARCH= /bin/sh -c /bd_build/prepare.sh && /bd_build/system_services.sh && /bd_build/utilities.sh && /bd_build/cleanup.sh # buildkit |
| ENV DEBIAN_FRONTEND=teletype LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 |
| CMD ["/sbin/my_init"] |
| ENV TEXMFVAR=/var/lib/overleaf/tmp/texmf-var |
| ENV REBUILT_AFTER=2025-10-30 |
| RUN /bin/sh -c true && rm -f /etc/apt/apt.conf.d/docker-clean && echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache && apt-get update && apt-get install -y unattended-upgrades build-essential wget net-tools unzip time imagemagick optipng strace nginx git python3 python-is-python3 zlib1g-dev libpcre3-dev gettext-base libwww-perl ca-certificates curl gnupg qpdf && unattended-upgrade --verbose --no-minimal-upgrade-steps && mkdir -p /etc/apt/keyrings && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_22.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && apt-get update && apt-get install -y nodejs && rm -rf /etc/nginx/nginx.conf /etc/nginx/sites-enabled/default # buildkit |
| ARG TEXLIVE_MIRROR=https://mirror.ox.ac.uk/sites/ctan.org/systems/texlive/tlnet |
| RUN |1 TEXLIVE_MIRROR=https://mirror.ox.ac.uk/sites/ctan.org/systems/texlive/tlnet /bin/sh -c mkdir /install-tl-unx && wget --quiet https://tug.org/texlive/files/texlive.asc && gpg --import texlive.asc && rm texlive.asc && wget --quiet ${TEXLIVE_MIRROR}/install-tl-unx.tar.gz && wget --quiet ${TEXLIVE_MIRROR}/install-tl-unx.tar.gz.sha512 && wget --quiet ${TEXLIVE_MIRROR}/install-tl-unx.tar.gz.sha512.asc && gpg --verify install-tl-unx.tar.gz.sha512.asc && sha512sum -c install-tl-unx.tar.gz.sha512 && tar -xz -C /install-tl-unx --strip-components=1 -f install-tl-unx.tar.gz && rm install-tl-unx.tar.gz* && echo "tlpdbopt_autobackup 0" >> /install-tl-unx/texlive.profile && echo "tlpdbopt_install_docfiles 0" >> /install-tl-unx/texlive.profile && echo "tlpdbopt_install_srcfiles 0" >> /install-tl-unx/texlive.profile && echo "selected_scheme scheme-basic" >> /install-tl-unx/texlive.profile && /install-tl-unx/install-tl -profile /install-tl-unx/texlive.profile -repository ${TEXLIVE_MIRROR} && $(find /usr/local/texlive -name tlmgr) path add && tlmgr install --repository ${TEXLIVE_MIRROR} latexmk texcount synctex etoolbox xetex && tlmgr path add && rm -rf /install-tl-unx # buildkit |
| RUN |1 TEXLIVE_MIRROR=https://mirror.ox.ac.uk/sites/ctan.org/systems/texlive/tlnet /bin/sh -c adduser --system --group --home /overleaf --no-create-home overleaf && mkdir -p /var/lib/overleaf && chown www-data:www-data /var/lib/overleaf && mkdir -p /var/log/overleaf && chown www-data:www-data /var/log/overleaf && mkdir -p /var/lib/overleaf/data/template_files && chown www-data:www-data /var/lib/overleaf/data/template_files # buildkit |
| WORKDIR /overleaf |
| ADD server-ce/genScript.js /overleaf/genScript.js # buildkit |
| ADD server-ce/services.js /overleaf/services.js # buildkit |
| ADD package.json package-lock.json /overleaf/ # buildkit |
| ADD libraries/ /overleaf/libraries/ # buildkit |
| ADD services/ /overleaf/services/ # buildkit |
| ADD tools/migrations/ /overleaf/tools/migrations/ # buildkit |
| ADD patches/ /overleaf/patches # buildkit |
| RUN /bin/sh -c true && node genScript install | bash && node genScript compile | bash # buildkit |
| ADD server-ce/runit /etc/service # buildkit |
| ADD server-ce/config/env.sh /etc/overleaf/env.sh # buildkit |
| ADD server-ce/nginx/nginx.conf.template /etc/nginx/templates/nginx.conf.template # buildkit |
| ADD server-ce/nginx/overleaf.conf /etc/nginx/sites-enabled/overleaf.conf # buildkit |
| ADD server-ce/nginx/clsi-nginx.conf /etc/nginx/sites-enabled/clsi-nginx.conf # buildkit |
| ADD server-ce/logrotate/overleaf /etc/logrotate.d/overleaf # buildkit |
| RUN /bin/sh -c chmod 644 /etc/logrotate.d/overleaf # buildkit |
| ADD server-ce/cron /overleaf/cron # buildkit |
| ADD server-ce/config/crontab-history /etc/cron.d/crontab-history # buildkit |
| RUN /bin/sh -c chmod 600 /etc/cron.d/crontab-history # buildkit |
| ADD server-ce/config/crontab-deletion /etc/cron.d/crontab-deletion # buildkit |
| RUN /bin/sh -c chmod 600 /etc/cron.d/crontab-deletion # buildkit |
| COPY server-ce/init_scripts/ /etc/my_init.d/ # buildkit |
| COPY server-ce/init_preshutdown_scripts/ /etc/my_init.pre_shutdown.d/ # buildkit |
| COPY server-ce/config/settings.js /etc/overleaf/settings.js # buildkit |
| COPY server-ce/config/production.json /overleaf/services/history-v1/config/production.json # buildkit |
| COPY server-ce/config/custom-environment-variables.json /overleaf/services/history-v1/config/custom-environment-variables.json # buildkit |
| ADD server-ce/bin/grunt /usr/local/bin/grunt # buildkit |
| RUN /bin/sh -c chmod +x /usr/local/bin/grunt # buildkit |
| ADD server-ce/bin/flush-history-queues /overleaf/bin/flush-history-queues # buildkit |
| RUN /bin/sh -c chmod +x /overleaf/bin/flush-history-queues # buildkit |
| ADD server-ce/bin/force-history-resyncs /overleaf/bin/force-history-resyncs # buildkit |
| RUN /bin/sh -c chmod +x /overleaf/bin/force-history-resyncs # buildkit |
| COPY server-ce/config/latexmkrc /usr/local/share/latexmk/LatexMk # buildkit |
| ENV SITE_MAINTENANCE_FILE=/etc/overleaf/site_status |
| RUN /bin/sh -c touch $SITE_MAINTENANCE_FILE # buildkit |
| ENV OVERLEAF_CONFIG=/etc/overleaf/settings.js |
| ENV WEB_API_USER=overleaf |
| ENV ADMIN_PRIVILEGE_AVAILABLE=true |
| ENV OVERLEAF_APP_NAME=Overleaf Community Edition |
| ENV OPTIMISE_PDF=true |
| ENV KILL_PROCESS_TIMEOUT=55 |
| ENV KILL_ALL_PROCESSES_TIMEOUT=55 |
| ENV GRACEFUL_SHUTDOWN_DELAY_SECONDS=1 |
| ENV NODE_ENV=production |
| ENV LOG_LEVEL=info |
| EXPOSE map[80/tcp:{}] |
| ENTRYPOINT ["/sbin/my_init"] |
| RUN /bin/sh -c apt update && apt install -y linux-libc-dev && unattended-upgrade --verbose --no-minimal-upgrade-steps && rm -rf /var/lib/apt/lists/* # buildkit |
| COPY mongo-version.patch . # buildkit |
| RUN /bin/sh -c patch -p1 < mongo-version.patch && rm mongo-version.patch # buildkit |
| WORKDIR /overleaf |
| /bin/sh -c apt-get update |
| /bin/sh -c apt-get install -y xfonts-utils |
| COPY dir:1d298ff3f25339f0aef24709f1e50d03776c405e032100c16c56a2afa42f4b90 in /usr/share/fonts |
| WORKDIR /usr/share/fonts/ms |
| /bin/sh -c mkfontscale |
| /bin/sh -c mkfontdir |
| /bin/sh -c fc-cache -fv |
| WORKDIR /usr/local/texlive |
| /bin/sh -c curl -LO https://mirrors.aliyun.com/CTAN/systems/texlive/tlnet/update-tlmgr-latest.sh |
| /bin/sh -c sh update-tlmgr-latest.sh -- --upgrade || true |
| /bin/sh -c tlmgr option repository https://mirrors.aliyun.com/CTAN/systems/texlive/tlnet/ |
| /bin/sh -c tlmgr update --self --all |
| /bin/sh -c tlmgr install scheme-full |
| WORKDIR /usr/local/texlive/2025/bin/x86_64-linux/ |
| /bin/sh -c tlmgr path add |
| WORKDIR /overleaf |
Labels
| Key | Value |
|---|---|
| com.overleaf.ce.revision | b0d05c0cf0750714e1f467d20ed6c5f5e9467e8f |
| io.buildah.version | 1.42.0 |
| org.opencontainers.image.ref.name | ubuntu |
| org.opencontainers.image.version | 24.04 |