Trying to figure out how to get Eleventy to build properly with a Podman contain...
Daniel Schildt @autiomaa@mementomori.social
Trying to figure out how to get Eleventy to build properly with a Podman container. I made it work for a minimalistic site that did not have almost any dependencies, but it was with a 11ty pre-installed to the container itself. Problem is that when using more complex site structures, Eleventy has to have more than itself installed to get additional functionality working.
My question is how to get a Node.js based application to build on a container, while making sure that all npm dependencies can be easily updated. I can remove & rebuild the container easily from CLI, but I would need to figure out a proper way to do dependency installs (with `npm install`) inside of the container before finally running the actual static site build process.
I know the basics about Docker usage & ecosystem around it, but it has been a while since I last used containers for building websites. Would be nice to hear if you know a good tutorial or Dockerfile example on how to do the multi-stage container image build properly, so that I could get those npm packages to install before running the 11ty build process itself.