2018-05-07 21:45:37 +02:00
|
|
|
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 '<nixpkgs>' -i gnutar gzip && \
|
|
|
|
nix-shell -Q -j2 --run true
|
|
|
|
|
|
|
|
COPY . /tmp/build
|
2018-05-14 00:05:27 +02:00
|
|
|
RUN bash -xe build.sh
|