forked from docker-training/docker-present
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (32 loc) · 1.16 KB
/
Dockerfile
File metadata and controls
39 lines (32 loc) · 1.16 KB
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
FROM python:2.7
MAINTAINER Jerry Baker <jbaker@docker.com>
# required packages
RUN apt-get update && apt-get -y install \
bsdmainutils \
git \
nodejs \
npm \
tree
# docker
RUN curl -sSL https://get.docker.com | sh
# reveal.js
WORKDIR /opt/revealjs
RUN ln -s /usr/bin/nodejs /usr/bin/node
RUN git clone https://github.com/hakimel/reveal.js.git /opt/revealjs
RUN git clone https://github.com/denehyg/reveal.js-menu.git /opt/revealjs/plugin/menu
RUN npm cache clean && npm install
# setup
COPY present/present.py /opt/revealjs/
COPY present/css/docker.css /opt/revealjs/css/theme/
COPY present/css/docker-code.css /opt/revealjs/lib/css/
COPY present/css/sd_custom.css /opt/revealjs/css/
COPY present/css/print /opt/revealjs/css/print/
COPY present/fonts /opt/revealjs/fonts/
COPY present/images /opt/revealjs/images/
COPY present/templates /opt/revealjs/templates
COPY present/prompt.sh /bin/prompt
# default presentation repository
# Note: Switching to 'ARG' as soon as the Docker Hub stack supports '--build-args'
#RUN git clone https://github.com/docker-training/presentations /opt/revealjs/src
ADD presentations /opt/revealjs/src
ENTRYPOINT ["/bin/prompt"]