Closed t-lou closed 2 years ago
According to Offical Node Image from Docker Hub, maybe this will be more efficient if use 18-bullseye
and start from there?
Probably should seperate all commands to multiple RUN as well.
According to Offical Node Image from Docker Hub, maybe this will be more efficient if use
18-bullseye
and start from there? Probably should seperate all commands to multiple RUN as well.
I tried both node:18-bullseye and node:18-bullseye-slim, besides the need-to-be-overridden entry point, many other packages need to be installed, including xorg. I think in this case, using debian and node bases have little difference. How do you think?
Refactored the dockerfile to be more structured. Still prefer to have fewer layers.
Hi @t-lou, Thanks for your PR xorg is necessary? We are just a static react site project, why should we need it?
I neither, during the command "yarn install" in phase 4 it asked for x11, xi or {another lib, which I forget}. X11 is basically xorg. When I tried to install libxi-dev, it asked for <GL/glx.h>.
Thus I assume node docker would not be a better solution.
Okay, it might be because of the 'ml-x' package in hlab-core. Thanks your PR, we will merge.
I remember seeing a question from email notification. So we need the port to connect the browser in host system and the program in docker container.
Docker file based on debian for easier deployment
preferred entry: docker run -p 3000:3000 hedgehog-lab sh /opt/run.sh