This repository has been archived by the owner on May 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
59 lines (43 loc) · 1.9 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
51
52
53
54
55
56
57
58
59
FROM hseeberger/scala-sbt
# Derived from haskell and jagregory/pandoc
## Install Haskell
ENV LANG C.UTF-8
RUN echo 'deb http://ppa.launchpad.net/hvr/ghc/ubuntu trusty main' > /etc/apt/sources.list.d/ghc.list && \
echo 'deb http://download.fpcomplete.com/debian/jessie stable main'| tee /etc/apt/sources.list.d/fpco.list && \
# hvr keys
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F6F88286 && \
# fpco keys
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C5705533DA4F78D8664B5DC0575159689BEFB442 && \
apt-get update && \
apt-get install -y --no-install-recommends cabal-install-1.22 ghc-7.10.3 happy-1.19.5 alex-3.1.4 \
stack zlib1g-dev libtinfo-dev libsqlite3-0 libsqlite3-dev ca-certificates g++ && \
rm -rf /var/lib/apt/lists/*
ENV PATH /root/.cabal/bin:/root/.local/bin:/opt/cabal/1.22/bin:/opt/ghc/7.10.3/bin:/opt/happy/1.19.5/bin:/opt/alex/3.1.4/bin:$PATH
## Install Pandoc
ENV PANDOC_VERSION "1.16.0.2"
RUN cabal update && cabal install pandoc-${PANDOC_VERSION} && cabal install pandoc-crossref && cabal install pandoc-include
## Install Latex and fonts
RUN apt-get update -y \
&& apt-get install -y --no-install-recommends \
texlive-latex-base \
texlive-xetex \
latex-xcolor \
texlive-math-extra \
texlive-latex-extra \
texlive-fonts-extra \
texlive-bibtex-extra \
lmodern \
ttf-bitstream-vera \
fontconfig && \
rm -fr /var/lib/apt/lists/*
## Install Node
RUN curl -sL https://deb.nodesource.com/setup_5.x | bash - && \
apt-get install -y --no-install-recommends nodejs && \
rm -fr /var/lib/apt/lists/*
## Install NPM dependencies
RUN npm install -g grunt-cli coffee-script yarn
## Make SBT cache it's file in a directory shared with the host so they will be
## shared between invocations of the container.
RUN mkdir /etc/sbt
RUN echo "-Dsbt.ivy.home=/source/.ivy2/" > /etc/sbt/sbtopts
WORKDIR /source