-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Cant run webpack-dev-server inside of a docker container? #547
Comments
Did you read "Webpack and Docker for Development and Deployment"? It explains the setup quite well. |
I just lifted over the .dockerfile and .dockerignore from that post and everything works now. Thanks for the tip! |
Cool! Could you close this issue? |
can be helpful for somebody:
|
@merapi what if I wanna use subdomains eg |
works like a charm!!! |
Linking to a paid article as the solution to a question in an open source forum, while understandable, is sus. |
As is not understanding that the web, and the resultant sites on there, change over time. In 2016, when this was written, Medium was not a subscription service, and subsequently, neither was this article. Medium went partially sub in 2017, doubled down in 2018 and 2019. I feel it would be more useful to the conversation for one to contribute a useful alternative for people finding this rather than criticizing someone for the current state of a contribution made 4 years ago in a landscape that evolves daily. |
Everything works fine when I want to run this through my local webpack server. I want to pack this project into a docker container.
The main page does get served with all the CSS assets intact, but none of the javascript within seems to have come through. I get this error message on my chrome console:
My Dockerfile looks like this:
Im using docker compose with the following config:
Do I need to expose any other ports? Is there a workaround to this?
The text was updated successfully, but these errors were encountered: