feat: use var for revealjs version

Signed-off-by: Ameya Shenoy <shenoy.ameya@gmail.com>
This commit is contained in:
Ameya Shenoy 2022-06-08 13:07:36 +05:30
parent de94acc872
commit 1afec75718
Signed by: codingcoffee
GPG key ID: 88174D3C138A243E

View file

@ -1,5 +1,7 @@
FROM node:15.14.0-alpine3.12 FROM node:15.14.0-alpine3.12
ENV REVEAL_JS_VERSION=4.1.0
RUN set -ex \ RUN set -ex \
&& apk add --no-cache \ && apk add --no-cache \
g++ \ g++ \
@ -9,10 +11,10 @@ RUN set -ex \
wget wget
RUN set -ex \ RUN set -ex \
&& wget https://github.com/hakimel/reveal.js/archive/refs/tags/4.1.0.zip \ && wget https://github.com/hakimel/reveal.js/archive/refs/tags/${REVEAL_JS_VERSION}.zip \
&& unzip 4.1.0.zip && unzip ${REVEAL_JS_VERSION}.zip
WORKDIR /reveal.js-4.1.0 WORKDIR "/reveal.js-${REVEAL_JS_VERSION}"
RUN set -ex \ RUN set -ex \
&& npm i && npm i