From 3d3094567d1220021a1ae76df180330eaf87fa32 Mon Sep 17 00:00:00 2001 From: Ameya Shenoy Date: Wed, 8 Jun 2022 14:28:43 +0530 Subject: [PATCH] fix: docker fixes Signed-off-by: Ameya Shenoy --- Dockerfile.dev | 10 +++++----- README.md | 3 ++- docker-compose.yml | 5 +++-- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Dockerfile.dev b/Dockerfile.dev index 17038d8..c186a73 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -1,6 +1,6 @@ FROM node:15.14.0-alpine3.12 -ENV REVEAL_JS_VERSION=4.1.0 +ENV REVEAL_JS_VERSION=4.3.1 RUN set -ex \ && apk add --no-cache \ @@ -12,12 +12,12 @@ RUN set -ex \ RUN set -ex \ && wget https://github.com/hakimel/reveal.js/archive/refs/tags/${REVEAL_JS_VERSION}.zip \ - && unzip ${REVEAL_JS_VERSION}.zip + && unzip ${REVEAL_JS_VERSION}.zip \ + && rm ${REVEAL_JS_VERSION}.zip \ + && mv reveal.js-${REVEAL_JS_VERSION} revealjs -WORKDIR "/reveal.js-${REVEAL_JS_VERSION}" +WORKDIR "/revealjs" RUN set -ex \ && npm i -ENTRYPOINT npm start - diff --git a/README.md b/README.md index de88e4f..43c8756 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,9 @@ - [ ] Add a index.html page at root listing out all slides - [ ] Changes to allow multiple presentations +- [ ] Better way to present references (in scientific format) ## Troubleshooting -- `set backupcopy=yes` is what you're looking for +- `set backupcopy=yes` is what you're looking for, to auto reaload via vim diff --git a/docker-compose.yml b/docker-compose.yml index e03fef9..d7f5fe9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,9 +8,10 @@ services: context: . dockerfile: Dockerfile.dev restart: unless-stopped + entrypoint: npm start -- --host 0.0.0.0 volumes: - - ./0001-intro/index.html:/reveal.js-4.1.0/index.html - - ./0001-intro/images:/reveal.js-4.1.0/images + - ./0003-intro-v2/index.html:/revealjs/index.html + - ./0003-intro-v2/images:/revealjs/images ports: - 8001:8000