I’m trying to create a multistage Dockerfile for my Haskell project.
As first stage, I would like to build only the remote dependencies, meaning all the dependencies which are available on the web.
In other terms, I would like to build whatever I can can, given only stack.yaml
, stack.yaml.lock
and package.yaml
.
I tried with stack build --only-snapshot
, but that fails when searching for a local dependency (i.e. a dependency which is in a local folder).
Is there a way to achieve this?