A containerised reveal.js installation which serves presentations.
Produce a suitable index.html
file and other presentation files such as markdown slides - refer to the reveal.js documentation. Run a kedoodle/reveal-docker
container, mounting in your presentation files.
See an example here which also publishes the presentation to GitHub Pages.
Using Docker Compose is recommended to define your reveal-docker
container in code. Run your presentation with docker-compose up
:
docker-compose.yml
services:
reveal:
image: kedoodle/reveal-docker:latest
ports:
- 8000:8000
- 35729:35729
volumes:
- ./src/index.html:/reveal.js/index.html
- ./src/slides.md:/reveal.js/slides.md
Alternatively without Docker Compose:
docker run --rm --name reveal-docker \
-p 8000:8000 \
-p 35729:35729 \
-v "$(pwd)"/src/index.html:/reveal.js/index.html \
-v "$(pwd)"/src/slides.md:/reveal.js/slides.md \
kedoodle/reveal-docker:latest
Create suitable presentation files and mount as volumes in docker-compose.yml
. To run locally docker-compose up reveal
. View the presentation at http://localhost:8000/.
To shell into the container docker-compose run --rm sh
.