Skip to content
Snippets Groups Projects
Commit 6ca1ea5d authored by root's avatar root
Browse files

Downgrade to NodeJS 6

parent 1ddb5527
No related branches found
No related tags found
No related merge requests found
......@@ -11,21 +11,62 @@ RUN apt-get -qq update && apt-get -qq -y upgrade
RUN apt-get -qq -y install build-essential wget unzip time imagemagick optipng strace nginx git python zlib1g-dev libpcre3-dev qpdf \
aspell aspell-en aspell-da \
nodejs grunt node-grunt-cli npm supervisor
supervisor
# nodejs grunt node-grunt-cli npm supervisor
#RUN wget https://s3.amazonaws.com/sharelatex-random-files/qpdf-6.0.0.tar.gz && \
# tar xzf qpdf-6.0.0.tar.gz && cd qpdf-6.0.0 && \
# ./configure && make && make install && ldconfig
# Replace shell with bash so we can source files
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
# Set debconf to run non-interactively
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
# Install base dependencies
RUN apt-get -qq -y install --no-install-recommends \
apt-transport-https \
build-essential \
ca-certificates \
curl \
git \
libssl-dev \
wget
#ENV NVM_DIR /root/.nvm
ENV NODE_VERSION 6.14.3
# Install nvm with node and npm
RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
ENV NVM_DIR /root/.nvm
RUN chmod 755 $NVM_DIR/nvm.sh
RUN . $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& nvm use default
ENV NODE_PATH $NVM_DIR/versions/node/v$NODE_VERSION/lib/node_modules
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
RUN npm install -g grunt-cli
RUN apt-get -qq -y install texlive-base texlive-binaries texlive-latex-base texlive-latex-recommended texlive texlive-bibtex-extra \
texlive-fonts-extra texlive-fonts-extra-links texlive-fonts-recommended texlive-formats-extra \
texlive-generic-extra texlive-generic-recommended texlive-lang-english texlive-lang-european \
texlive-latex-extra texlive-pictures texlive-plain-generic texlive-pstricks texlive-science
RUN apt-get -qq -y install r-base r-base-dev xorg xorg-dev r-cran-rgl libxml2-dev libcurl4-gnutls-dev \
r-cran-rjava default-jre ed libssl-dev
#RUN apt-get -qq -y install r-base r-base-dev xorg xorg-dev r-cran-rgl libxml2-dev libcurl4-gnutls-dev \
# r-cran-rjava default-jre ed libssl-dev
RUN git clone https://github.com/sharelatex/sharelatex.git /var/www/sharelatex && \
rm -rf /var/www/sharelatex/.git
COPY setup*.sh /
RUN /setup-r.sh
#RUN /setup-r.sh
RUN /setup-paths.sh
COPY config/services.js /var/www/sharelatex/config/
......@@ -62,6 +103,8 @@ COPY config/sharelatex /etc/logrotate.d/
COPY config/supervisord.conf /etc/
RUN ln -s /root/.nvm/versions/node/v6.14.3/bin/node /usr/bin/
CMD ["/usr/bin/supervisord"]
# cd /var/www/sharelatex && grunt check:redis
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment