FROM lnl7/nix:2.0 WORKDIR /tmp/build COPY default.nix /tmp/build COPY package.yaml /tmp/build # Install tools needed by builtins.fetchTarball, and then install all # dependencies into its own layer, which doesn't change. RUN nix-env -f '' -i gnutar gzip && \ nix-shell -Q -j2 --run true COPY . /tmp/build RUN bash -xe build.sh