forked from scalawithcats/scala-with-cats
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
55 lines (36 loc) · 1.36 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
FROM thomasweise/docker-pandoc:3.3
## Install Node the easy way
# This doesn't work on "development" versions of Ubuntu
# like the one on which the thomasweise/docker-pandoc is based.
# RUN curl -sL https://deb.nodesource.com/setup_13.x | bash - && \
# apt-get install -y --no-install-recommends \
# nodejs
## Install Node manually
RUN apt-get update -y \
&& apt-get install -y gnupg lsb
ENV APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=DontWarn
RUN curl -sSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - \
&& VERSION=node_12.x \
&& DISTRO="$(lsb_release -s -c)" \
&& echo "deb https://deb.nodesource.com/$VERSION $DISTRO main" | tee /etc/apt/sources.list.d/nodesource.list \
&& echo "deb-src https://deb.nodesource.com/$VERSION $DISTRO main" | tee -a /etc/apt/sources.list.d/nodesource.list \
&& apt-get update -y \
&& apt-get install -y nodejs
## Install Java
RUN set -ex \
&& apt-get update -y \
&& DEBIAN_FRONTEND=noninteractive \
&& mkdir -p /usr/share/man/man1 \
&& apt-get install -y default-jdk-headless
## Install SBT
RUN mkdir -p ~/bin; curl -Ls https://git.io/sbt > ~/bin/sbt && chmod 0755 ~/bin/sbt
## Install fonts
RUN apt-get update -y \
&& apt-get install -y ttf-bitstream-vera
## Clean up
RUN apt-get clean \
&& rm -rf /var/lib/apt/lists/*
## Tweak PATH
ENV PATH=~/bin:$PATH
## Yay! We're done!
WORKDIR /source