Dockerfile 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. FROM ubuntu:20.04
  2. # Makes sure LuaTex cache is writable
  3. # -----------------------------------
  4. ENV TEXMFVAR=/var/lib/sharelatex/tmp/texmf-var
  5. # Install dependencies
  6. # --------------------
  7. ARG DEBIAN_FRONTEND=noninteractive
  8. RUN apt-get update \
  9. && apt-get install -y \
  10. build-essential wget net-tools unzip time imagemagick optipng strace nginx git python zlib1g-dev libpcre3-dev \
  11. qpdf \
  12. aspell aspell-en aspell-af aspell-am aspell-ar aspell-ar-large aspell-bg aspell-bn aspell-br aspell-ca aspell-cs aspell-cy aspell-da aspell-de aspell-el aspell-eo aspell-es aspell-et aspell-eu-es aspell-fa aspell-fo aspell-fr aspell-ga aspell-gl-minimos aspell-gu aspell-he aspell-hi aspell-hr aspell-hsb aspell-hu aspell-hy aspell-id aspell-is aspell-it aspell-kk aspell-kn aspell-ku aspell-lt aspell-lv aspell-ml aspell-mr aspell-nl aspell-nr aspell-ns aspell-pa aspell-pl aspell-pt aspell-pt-br aspell-ro aspell-ru aspell-sk aspell-sl aspell-ss aspell-st aspell-sv aspell-tl aspell-tn aspell-ts aspell-uk aspell-uz aspell-xh aspell-zu \
  13. \
  14. # install Node.JS 12
  15. && curl -sSL https://deb.nodesource.com/setup_12.x | bash - \
  16. && apt-get install -y nodejs \
  17. \
  18. && rm -rf \
  19. # We are adding a custom nginx config in the main Dockerfile.
  20. /etc/nginx/nginx.conf \
  21. /etc/nginx/sites-enabled/default \
  22. /var/lib/apt/lists/*
  23. # Add envsubst
  24. # ------------
  25. ADD server-ce/vendor/envsubst /usr/bin/envsubst
  26. RUN chmod +x /usr/bin/envsubst
  27. # Install TexLive
  28. # ---------------
  29. # Skipped!
  30. # Set up sharelatex user and home directory
  31. # -----------------------------------------
  32. RUN mkdir -p /var/lib/sharelatex && \
  33. mkdir -p /var/log/sharelatex && \
  34. mkdir -p /var/lib/sharelatex/data/template_files