Using Docker to run Sage theme build

Hey y’all.

I recently created a Docker image for running the theme build for Sage. The only dependency to run it is the Docker Engine installed. The benefit here is that you have a dedicated pre-built environment with Node and all the other dependencies inside isolated from the host OS. This also means you could easily build Sage 8 and 9 on the same machine if you wanted without having to worry about which Node version, etc.

The image uses tags that map to the major version of Sage that you want to build for. Usage is pretty simple and outlined on the README of the respective versions:

I don’t think it works with BrowserSync / or the Webpack watch stuff, so I think the use case here is more for use with your build as part of a deploy. (Anyone using Docker for this locally?)

Let me know what you guys think.