Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dtu-enote-sharelatex
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
enote
dtu-enote-sharelatex
Commits
6ca1ea5d
Commit
6ca1ea5d
authored
7 years ago
by
root
Browse files
Options
Downloads
Patches
Plain Diff
Downgrade to NodeJS 6
parent
1ddb5527
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
sharelatex/Dockerfile
+47
-4
47 additions, 4 deletions
sharelatex/Dockerfile
with
47 additions
and
4 deletions
sharelatex/Dockerfile
+
47
−
4
View file @
6ca1ea5d
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment