27 lines
756 B
Docker
27 lines
756 B
Docker
FROM alpine as builder
|
|
|
|
|
|
RUN set -ex \
|
|
&& apk add --no-cache \
|
|
unzip \
|
|
wget \
|
|
&& wget https://github.com/hakimel/reveal.js/archive/refs/tags/4.1.0.zip \
|
|
&& unzip 4.1.0.zip \
|
|
&& cp -r /reveal.js-4.1.0 /reveal.js-4.1.0-1 \
|
|
&& cp -r /reveal.js-4.1.0 /reveal.js-4.1.0-2
|
|
|
|
COPY 0001-intro/index.html /reveal.js-4.1.0-1
|
|
COPY 0001-intro/images /reveal.js-4.1.0-1/images
|
|
|
|
COPY 0002-containers/index.html /reveal.js-4.1.0-2
|
|
COPY 0002-containers/images /reveal.js-4.1.0-2/images
|
|
|
|
# ========== END OF BUILDER ========== #
|
|
|
|
FROM nginx:alpine
|
|
|
|
LABEL maintainer "Ameya Shenoy <shenoy.ameya@gmail.com>"
|
|
|
|
COPY --from=builder /reveal.js-4.1.0-1 /usr/share/nginx/html/0001-intro
|
|
COPY --from=builder /reveal.js-4.1.0-2 /usr/share/nginx/html/0002-containers
|
|
|