f-o-a-m / kepler

A Haskell framework that facilitates writing ABCI applications
https://kepler.dev
Apache License 2.0
34 stars 10 forks source link

Dockerfile `stack setup` caching #182

Closed iostat closed 4 years ago

iostat commented 4 years ago

Run stack setup before copying the project into Docker, to allow GHC setup to be cached.

GHC cache will be busted if stack.yaml changes. Also, this won't be clever enough to detect you overriding the compiler in stack.yaml, so be wary of that.