feat: use var for revealjs version
Signed-off-by: Ameya Shenoy <shenoy.ameya@gmail.com>
This commit is contained in:
parent
de94acc872
commit
1afec75718
1 changed files with 5 additions and 3 deletions
|
|
@ -1,5 +1,7 @@
|
|||
FROM node:15.14.0-alpine3.12
|
||||
|
||||
ENV REVEAL_JS_VERSION=4.1.0
|
||||
|
||||
RUN set -ex \
|
||||
&& apk add --no-cache \
|
||||
g++ \
|
||||
|
|
@ -9,10 +11,10 @@ RUN set -ex \
|
|||
wget
|
||||
|
||||
RUN set -ex \
|
||||
&& wget https://github.com/hakimel/reveal.js/archive/refs/tags/4.1.0.zip \
|
||||
&& unzip 4.1.0.zip
|
||||
&& wget https://github.com/hakimel/reveal.js/archive/refs/tags/${REVEAL_JS_VERSION}.zip \
|
||||
&& unzip ${REVEAL_JS_VERSION}.zip
|
||||
|
||||
WORKDIR /reveal.js-4.1.0
|
||||
WORKDIR "/reveal.js-${REVEAL_JS_VERSION}"
|
||||
|
||||
RUN set -ex \
|
||||
&& npm i
|
||||
|
|
|
|||
Loading…
Reference in a new issue