-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (16 loc) · 781 Bytes
/
Dockerfile
File metadata and controls
18 lines (16 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM ghcr.io/cloudogu/reveal.js:5.2.1-r3 as aggregator
ENV TITLE='Bye-bye Lock-in: Automate cloud switching using open source'
ENV THEME_CSS='cloudogu.css'
ENV WIDTH='1280'
USER root
# Remove demo slides before templating
RUN rm -rf /reveal/docs
COPY . /reveal
RUN if [ -d /reveal/resources/ ]; then mv /reveal/resources/ /; fi
RUN /scripts/templateIndexHtml
FROM nginxinc/nginx-unprivileged:1-alpine-slim
#FROM ghcr.io/nginx/nginx-unprivileged:1-alpine no rate limits, but no slim. 53M instead of 17M unpacked 😐️
COPY --from=aggregator --chown=nginx /reveal /usr/share/nginx/html
# FROM ghcr.io/cloudogu/reveal.js is also possible but not relying on a 3rd party image requires less trust
# ENV SKIP_TEMPLATING='true'
# COPY --from=aggregator --chown=nginx /reveal /reveal