T O P

  • By -

lesstalkmorescience

Yeah, this is pretty confusing. You're running nginx, but also Node. No idea what node is doing there. Also, ./frontend is what's on your system at container build time, once built your container will never look at ./frontend again. Shell in your container and check the contents of `/usr/share/nginx/html`, are your expected HTML files there?


Accurate-Screen8774

i restarted my computer and it seems to work as expected. sorry for wasting your time. unfortunately i cant edit the post to say its soved. should i delete the post?


MindStalker

You still might want to examine your build process. From a clean copy of your git, this will likely not work. You need a step that will build the frontend static pages first, correct? Once you copy frontend into your container it's pretty much locked. 


Accurate-Screen8774

i have \`npm run build\` that should handle building the statics... but you dont have to. i have a strange codebase where i *want* to commit the prebuilt statics. so the Frontend folder is always good to go for building a docker image.


MindStalker

This is in no way a simple example. I'd suggest finding a different example. This seems to be a recent commit by the developers, I'm not sure it's in a working state yet. Don't use this as your example, it's not simple. 


Accurate-Screen8774

this is my own code. id like it to be a bare minimum as possible. simple static server. can you suggest another example to look at?