forked from danidemi/docker-reveal.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
58 lines (45 loc) · 1.94 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
FROM debian:8.0
MAINTAINER Daniele Demichelis <demichelis@danidemi.com>
# Install systems
RUN apt-get update; apt-get install procps -yy
RUN apt-get purge procps -yy && apt-get clean -y && apt-get autoclean -y && apt-get autoremove -y
RUN apt-get -y install curl
# Install node.js
RUN curl -sL https://deb.nodesource.com/setup | bash -
RUN apt-get install -y nodejs
RUN apt-get install -y build-essential
# Install grunt
RUN npm install -g grunt-cli
# Install git
RUN apt-get install -y git
# Install reveal.js
RUN git clone https://github.com/hakimel/reveal.js.git
RUN cd reveal.js; npm install
COPY index.html /slides/
RUN rm /reveal.js/index.html
RUN ln -s /slides/index.html /reveal.js/index.html
COPY Gruntfile.js /reveal.js/
# Pandoc search for...
# http://localhost:8000/reveal.js/css/reveal.min.css
# http://localhost:8000/reveal.js/js/reveal.min.js
# http://localhost:8000/reveal.js/lib/js/head.min.js
# http://localhost:8000/reveal.js/css/print/pdf.css
# http://localhost:8000/reveal.js/css/theme/simple.css
# http://localhost:35729/livereload.js?snipver=1
# http://localhost:8000/reveal.js/css/theme/simple.css
# http://localhost:8000/reveal.js/css/print/pdf.css
# http://localhost:8000/reveal.js/plugin/zoom-js
RUN mkdir -p /pandoc/reveal.js/css/lib
RUN mkdir -p /pandoc/reveal.js/js
RUN mkdir -p /pandoc/reveal.js/lib/js
RUN mkdir -p /pandoc/reveal.js/css/print
RUN ["ln", "-s", "/reveal.js/css/reveal.css", "/pandoc/reveal.js/css/reveal.min.css"]
RUN ["ln", "-s", "/reveal.js/js/reveal.js" , "/pandoc/reveal.js/js/reveal.min.js"]
RUN ["ln", "-s", "/reveal.js/lib/js/head.min.js", "/pandoc/reveal.js/lib/js/head.min.js"]
RUN ["ln", "-s", "/reveal.js/css/print/pdf.css", "/pandoc/reveal.js/css/print/pdf.css"]
RUN ["ln", "-s", "/reveal.js/css/theme/", "/pandoc/reveal.js/css/theme"]
RUN ["ln", "-s", "/reveal.js/plugin", "/pandoc/reveal.js/plugin"]
RUN apt-get -y install pandoc
WORKDIR reveal.js
CMD grunt serve
EXPOSE 8000