title: Compile webpack on docker production server
body: <p>I am setting up docker for my React/Redux app, and I was wondering how to set it up in such way, that in production, on container setup, webpack compiles my whole code with production configuration, and then it removes itself, or something like that. Because the only thing I will need for my project is production code, and a simple node server that will serve it. </p>
  
  <p>I'm not sure if I explained it well, since docker and webpack are still new things for me.</p>
  
  <p>EDIT: 
  Alternatively I can even serve everything with an apache server, but I want everything to compile and setup just when I run docker-compose.</p>