Another solution would be to add the npm stuff in the entrypoint.sh, so it will generate everything at runtime even if you mount the repo. With this solution it will work every time, but with 1 min overhead at starting the app container.
I don't know, you know that better than me for sure !
Hello,
First of all, very nice work here ! Thanks for sharing your work to the world.
I just cloned your repo and used docker-compose to run the app locally but i got a blank page on http://localhost:5000/auth/login. In the developer console it shown a 404 on http://localhost:5000/static/dist/auth.bundle.js
The reason is if you do not run the
on your local and mount the repo in /app with your compose file, the generated js etc.. will not be there.
A quick fix would be to comment or delete the volume mount as below because you do it in the Dockerfile:
Another solution would be to add the npm stuff in the entrypoint.sh, so it will generate everything at runtime even if you mount the repo. With this solution it will work every time, but with 1 min overhead at starting the app container.
I don't know, you know that better than me for sure !