fix: docker fixes

Signed-off-by: Ameya Shenoy <shenoy.ameya@gmail.com>
This commit is contained in:
Ameya Shenoy 2022-06-08 14:28:43 +05:30
parent 1afec75718
commit 3d3094567d
Signed by: codingcoffee
GPG key ID: 88174D3C138A243E
3 changed files with 10 additions and 8 deletions

View file

@ -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

View file

@ -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

View file

@ -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