feat: dev server
Signed-off-by: Ameya Shenoy <shenoy.ameya@gmail.com>
This commit is contained in:
parent
6599424f27
commit
09f4569c75
3 changed files with 30 additions and 4 deletions
19
Dockerfile.dev
Normal file
19
Dockerfile.dev
Normal 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
|
||||||
|
|
||||||
|
|
@ -6,3 +6,7 @@
|
||||||
- [ ] Add a index.html page at root listing out all slides
|
- [ ] Add a index.html page at root listing out all slides
|
||||||
- [ ] Changes to allow multiple presentations
|
- [ ] Changes to allow multiple presentations
|
||||||
|
|
||||||
|
## Troubleshooting
|
||||||
|
|
||||||
|
- `set backupcopy=yes` is what you're looking for
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,14 @@ version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
slides:
|
slides:
|
||||||
image: codingcoffee/slides
|
image: codingcoffee/slides-dev
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile.dev
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./0001-intro/index.html:/usr/share/nginx/html/0001-intro/index.html
|
- ./0001-intro/index.html:/reveal.js-4.1.0/index.html
|
||||||
- ./0001-intro/images:/usr/share/nginx/html/0001-intro/images
|
- ./0001-intro/images:/reveal.js-4.1.0/images
|
||||||
ports:
|
ports:
|
||||||
- 8080:80
|
- 8080:8080
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue