Use multi-stage build to generate image from mustache template

This commit is contained in:
Luc Juggery 2018-01-25 16:16:05 +01:00
parent 3a516e4e19
commit b348a1ecca
2 changed files with 11 additions and 4 deletions

View file

@ -1,2 +1,9 @@
FROM mhart/alpine-node:8.9.4 as build
RUN npm install -g mustache
COPY . /build
WORKDIR /build
RUN mustache events.json index.mustache > index.html
FROM nginx:1.12.2
COPY . /usr/share/nginx/html
COPY --from=build /build/index.html /usr/share/nginx/html/index.html

View file

@ -15,7 +15,7 @@
"link": "https://www.meetup.com/fr-FR/Sophia-Antipolis-HashiCorp-User-Group/events/246742297/"
},
{
"type": "telecomvalley-cos",
"type": "telecomvalley",
"title": "Commission Open Source",
"date": "25/01/2018",
"desc": "Retour d'expérience sur l'utilisation de <b>Kafka</b> par <b>Sébastien Alegret</b> de GreenCom Network",
@ -30,20 +30,20 @@
},
{
"type": "rivierajug",
"title": "Riviera Jug",
"title": "",
"date": "06/02/2018",
"desc": "Présentation de la base de données <b>Hazelcast</b> par <b>Neil Stevenson</b>",
"link": "http://rivierajug.org/xwiki/bin/view/Main/201802-hazelcast"
},
{
"type": "telecomvalley-cos",
"type": "telecomvalley",
"title": "Commission Open Source",
"date": "20/02/2018",
"desc": "Présentation de <b>Open Source Business Diagnostic</b> par <b>Jaime Arredondo</b> (BoldAndOpen.com)",
"link": ""
},
{
"type": "telecomvalley-cos",
"type": "telecomvalley",
"title": "Commission Open Source",
"date": "15/03/2018",
"desc": "Introduction à la programmation fonctionnelle par <b>Yann Esposito</b>. Attention, <b>Haskell</b> au programme...",