2019-10-24 16:05:12 +00:00
|
|
|
FROM nixos/nix as builder
|
2017-10-22 12:58:16 +00:00
|
|
|
MAINTAINER github@erebe.eu
|
|
|
|
|
2019-10-24 16:05:12 +00:00
|
|
|
RUN nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs
|
|
|
|
RUN nix-channel --update
|
|
|
|
RUN nix-env -i bash upx
|
2017-10-22 12:58:16 +00:00
|
|
|
|
2019-10-24 16:05:12 +00:00
|
|
|
WORKDIR /mnt
|
2017-10-22 12:58:16 +00:00
|
|
|
COPY stack.yaml /mnt
|
|
|
|
COPY *.cabal /mnt
|
2019-10-24 16:05:12 +00:00
|
|
|
COPY default.nix /mnt
|
2017-10-22 12:58:16 +00:00
|
|
|
|
2019-10-24 16:05:12 +00:00
|
|
|
RUN nix-build --no-link -A fullBuildScript
|
2017-10-22 12:58:16 +00:00
|
|
|
COPY . /mnt
|
2019-10-24 16:05:12 +00:00
|
|
|
RUN $(nix-build --no-link -A fullBuildScript)
|