Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker image #66

Open
tomav opened this issue Mar 23, 2016 · 7 comments
Open

Docker image #66

tomav opened this issue Mar 23, 2016 · 7 comments
Assignees
Milestone

Comments

@tomav
Copy link
Contributor

tomav commented Mar 23, 2016

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
Copy link
Contributor Author

tomav commented Mar 23, 2016

Gonna have a look to alpine...

@tomav
Copy link
Contributor Author

tomav commented Mar 23, 2016

Better. 145.6 MB

@tomav
Copy link
Contributor Author

tomav commented Mar 23, 2016

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

tomav added a commit to tomav/mozaik that referenced this issue Mar 23, 2016
@plouc
Copy link
Owner

plouc commented Mar 23, 2016

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

@t3db0t
Copy link

t3db0t commented Jun 8, 2016

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

@juhamust
Copy link
Contributor

juhamust commented Jun 9, 2016

@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
Copy link

t3db0t commented Jun 9, 2016

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?

@plouc plouc added this to the v2 milestone Aug 19, 2016
@plouc plouc self-assigned this Aug 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants