feat: dev server

Signed-off-by: Ameya Shenoy <shenoy.ameya@gmail.com>
This commit is contained in:
Ameya Shenoy 2021-04-16 00:06:20 +05:30
parent 6599424f27
commit 09f4569c75
Signed by: codingcoffee
GPG key ID: F7D58AAC5DACF8D3
3 changed files with 30 additions and 4 deletions

19
Dockerfile.dev Normal file
View file

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

View file

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

View file

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