forked from aslushnikov/latex-online
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
51 lines (42 loc) · 1.31 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Latex-Online container
#
# VERSION 1
# use the ubuntu base image provided by dotCloud
FROM ubuntu
MAINTAINER Andrey Lushnikov [email protected]
# install node and memcached
RUN echo "deb http://us.archive.ubuntu.com/ubuntu/ precise universe" >> /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y software-properties-common python-software-properties python python-setuptools ruby
RUN apt-get install -y memcached
#Add node repository to sources.list and update apt
RUN add-apt-repository ppa:chris-lea/node.js && apt-get update
RUN apt-get install -y nodejs
# copy latex.online source files into sandbox
ADD . /var/www
RUN cd /var/www ; npm install
# we want to run in production mode
ENV NODE_ENV production
# LaTeX 2012
# Utilities which are used by Latex.Online
run apt-get install -y bc
run apt-get install -y curl
run apt-get install -y git-core
RUN apt-get install -y rubber
# install packages
run apt-get install -y \
fontconfig \
texlive-latex-base \
texlive-xetex \
latex-xcolor \
preview-latex-style \
texlive-science \
texlive-math-extra \
texlive-latex-extra \
texlive-fonts-extra \
texlive-lang-cyrillic \
biblatex
WORKDIR /var/www
RUN sh util/check.sh
ENTRYPOINT ["./dockerEntryPoint.sh"]
EXPOSE 2700