Hacker News new | past | comments | ask | show | jobs | submit login

Do you think a lot of people are running JS in a container for frontend? I wouldn't consider a webserver container a "JS container", even it were mostly serving a React/Vue/Angular app.

By the way it's worded, it sounds like the question is specifically talking about NodeJS.




> Do you think a lot of people are running JS in a container for frontend?

Hold my beer. --Frontend developers


If the rest of a web app is running on containers, what's the downside to having the test/build process for the frontend in a container as well?


I like using containers as a reliable build context. I think it makes tons of sense.

Once the container's done building, throw it out, take what it built, and serve it.

I'd personally do this separately from the rest of the web app if possible, though. I keep frontends in their own repository.


actually! at my old job there was a project where the frontend webpack build was running in a docker container..


Yeah, I guess when you think about it that way it makes sense. I think I might have assumed this was for production and not build environments.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: