-
Notifications
You must be signed in to change notification settings - Fork 34
/
Dockerfile
22 lines (19 loc) · 926 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM nginx:alpine
COPY --chown=42:42 output-html /usr/share/nginx/html
COPY --chown=42:42 images /usr/share/nginx/html/images
COPY --chown=42:42 revealjs /usr/share/nginx/html/revealjs
COPY --chown=42:42 styles /usr/share/nginx/html/revealjs/css/theme
RUN <<EOF
echo '<!DOCTYPE html>' > /usr/share/nginx/html/index.html
echo '<head>' >> /usr/share/nginx/html/index.html
echo '<meta charset="utf-8">' >> /usr/share/nginx/html/index.html
echo '<title>Index formation</title>' >> /usr/share/nginx/html/index.html
echo '</head>' >> /usr/share/nginx/html/index.html
echo '<body>' >> /usr/share/nginx/html/index.html
for i in `ls -1 /usr/share/nginx/html/*.html`
do
echo "<br>- <a href=$(basename $i)>$(basename $i)</a><br>" >> /usr/share/nginx/html/index.html
done
echo '</body>' >> /usr/share/nginx/html/index.html
echo '</html>' >> /usr/share/nginx/html/index.html
EOF