<filename>git-hidden-features/Dockerfile<gh_stars>0
FROM node:11.15.0-alpine

LABEL name="TungBeier Node image for reveal.js" \
    maintainer="<NAME> <<EMAIL>>" \
    summary="Image to serve a presentation with reveal.js"

ENV TZ=Europe/Berlin
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

USER root
RUN apk update --no-cache && \
        apk upgrade --no-cache && \
        apk add --no-cache python make g++ git && \
        git clone https://github.com/hakimel/reveal.js.git /revealJS && \
        cd revealJS && \
        sed -i 's/league-gothic/source-sans-pro/g' ./css/theme/*.css && \
        npm install && \
        rm -f demo.html index.html && \
        rm -fR /var/cache/apk/*

RUN mkdir -p /project/{img,slides} && \
        cd /project && \
        touch index.html custom.css && \
        ln -s /project/img /revealJS/img && \
        ln -s /project/slides /revealJS/slides && \
        ln -s /project/index.html /revealJS/index.html && \
        ln -s /project/custom.css /revealJS/css/custom.css

WORKDIR /revealJS
VOLUME ["/project"]

CMD ["npm", "start"]
