ScottLogic / blog

The Scott Logic blog
http://blog.scottlogic.com
Other
9 stars 88 forks source link

fix: docker build and run corrections #259

Closed chriswilty closed 1 month ago

chriswilty commented 1 month ago

There was a problem with gem 'ffi' brought in via gem github-pages: https://github.com/ffi/ffi/issues/1103

I've applied the fix in our Gemfile, with a clarifying comment.

I also fixed a path-related problem when using Git bash on Windows, as Docker does not recognise Git bash's linuxified drive paths, such as /c/dev/hello-world. This must be translated to C:/dev/hello-world. Now both build and serve work in Git bash on Windows machines 🥳

resolves #257

chriswilty commented 1 month ago

Obvs I'd love someone to try this out 🧐

If you already have a Gemfile.lock file and/or container_gem_cache folder you should probably delete those, to get a clean build.