docker icon indicating copy to clipboard operation
docker copied to clipboard

Adding Racket to Netlify Build Image

Open smizell opened this issue 4 years ago • 2 comments

This isn't an issue, just informational :)

I've been playing with Pollen lately and wanted to automate deployments to Netlify. Unfortunately, Netlify doesn't support Racket out of the box. I borrowed some of the Dockerfile from here to open a PR to see if they'll add it.

https://github.com/netlify/build-image/pull/381

Thanks for putting this Docker stuff together! I appreciate it.

smizell avatar Mar 28 '20 21:03 smizell

Oh cool! I hadn't heard of Netlify, I'm glad you were able to get Racket working for it. And thanks for the appreciation 🙂.

Skimming the Netlify docs, do they maintain a single shared Docker image with every common frontend toolchain installed? That's interesting, I would have expected them to let you specify an arbitrary custom image that you want to build your site with.

jackfirth avatar Mar 29 '20 23:03 jackfirth

Yeah, they have a single image here. It installs Ruby, Python, Node, and a few others along with Hugo as a static site tool. They then have a build script they run that will do various things out of the box on build. It will look for Gemfiles for Ruby or Python files and install all dependencies.

This lets you drop your static site tool into dependencies and give them a run command. They'll install dependencies on build and run your command afterwards.

No telling how big the image is though!

I would have expected them to let you specify an arbitrary custom image that you want to build your site with.

Agreed. I'd be curious why. Maybe they feel that CI/CD services can already do that, and you can use the Netlify command to push up the build afterwards. I've actually been tinkering with this myself since they don't have Racket support. I'm not a Docker expert so it's definitely a journey. :)

smizell avatar Apr 02 '20 13:04 smizell