Merge pull request #80 from overleaf/jpa-cleanup-install-deps

[misc] cleanup install deps
This commit is contained in:
Jakob Ackermann 2020-02-10 17:16:44 +01:00 committed by GitHub
commit ca94225c19
2 changed files with 10 additions and 7 deletions

View file

@ -5,3 +5,7 @@ gitrev
.npm
.nvmrc
nodemon.json
uploads/
user_files/
template_files/

View file

@ -1,15 +1,14 @@
#!/bin/sh
set -ex
apt-get update
apt-get install vim imagemagick optipng --yes
apt-get install ghostscript imagemagick optipng --yes
rm -rf /var/lib/apt/lists/*
wget -q https://s3.amazonaws.com/sl-public-dev-assets/ghostscript-9.15.tar.gz -O /tmp/ghostscript-9.15.tar.gz
cd /tmp
tar -xvf /tmp/ghostscript-9.15.tar.gz
cd /tmp/ghostscript-9.15 && ./configure && make && make install
npm rebuild
mkdir /app/user_files/ /app/uploads/ /app/template_files/
chown -R node:node /app/user_files
chown -R node:node /app/uploads
chown -R node:node /app/template_files
ls -al /app