diff --git a/Dockerfile.dev b/Dockerfile.dev new file mode 100644 index 0000000..6342f72 --- /dev/null +++ b/Dockerfile.dev @@ -0,0 +1,19 @@ +FROM node:15.14.0-alpine3.12 + +RUN set -ex \ + && apk add --no-cache \ + unzip \ + wget + +RUN set -ex \ + && wget https://github.com/hakimel/reveal.js/archive/refs/tags/4.1.0.zip \ + && unzip 4.1.0.zip + +RUN set -ex \ + && npm i -g \ + live-server + +WORKDIR /reveal.js-4.1.0 + +ENTRYPOINT live-server + diff --git a/README.md b/README.md index d2ba4d2..de88e4f 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,7 @@ - [ ] Add a index.html page at root listing out all slides - [ ] Changes to allow multiple presentations +## Troubleshooting + +- `set backupcopy=yes` is what you're looking for + diff --git a/docker-compose.yml b/docker-compose.yml index 1fd11d3..82e3661 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,11 +3,14 @@ version: '3.8' services: slides: - image: codingcoffee/slides + image: codingcoffee/slides-dev + build: + context: . + dockerfile: Dockerfile.dev restart: unless-stopped volumes: - - ./0001-intro/index.html:/usr/share/nginx/html/0001-intro/index.html - - ./0001-intro/images:/usr/share/nginx/html/0001-intro/images + - ./0001-intro/index.html:/reveal.js-4.1.0/index.html + - ./0001-intro/images:/reveal.js-4.1.0/images ports: - - 8080:80 + - 8080:8080