plouc / mozaik

Mozaïk is a tool based on nodejs / react / redux / nivo / d3 to easily craft beautiful dashboards
http://mozaik.rocks
MIT License
3.61k stars 363 forks source link

Docker image #66

Open tomav opened 8 years ago

tomav commented 8 years ago

Hi @plouc,

More a question about an enhancement than an issue. I know you are think about a docker image to run mozaik dashboards.

I quickly built one using this Dockerfile template:

FROM node:onbuild
RUN npm install -g gulp
RUN gulp build
CMD [ "node", "app.js" ]
EXPOSE 5000

The image is 700MB+ which is HUGE. If you have any thought to share here, do not hesitate.

Thank you.

tomav commented 8 years ago

Gonna have a look to alpine...

tomav commented 8 years ago

Better. 145.6 MB

tomav commented 8 years ago

Had to add use(connect.static('public')) to server creation. Will probably PR something.

plouc commented 8 years ago

@tomav, I already started something, but not yet finished https://github.com/plouc/mozaik-docker/blob/master/Dockerfile

t3db0t commented 8 years ago

This would be potentially useful for Raspberry Pi setups. Right now installing yo gulp generator-mozaik is taking foreeeeever ;)

juhamust commented 8 years ago

@t3db0t, are you developing dashboard on raspberry box or only hosting it? Sure, there is still that npm install --production but it should be doable.

t3db0t commented 8 years ago

Oh, ok, I didn't think about that—no, I don't need to develop on the Pi, just deploy. Can you point me in the right direction with how to do that?