nixpkgs/Dockerfile

14 lines
390 B
Docker
Raw Normal View History

2020-02-05 04:07:19 +00:00
FROM monacoremo/nix:2020-01-31-62bbc2ab
RUN nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs \
&& nix-channel --update
ENV USER root
RUN nix-env -i gnutar gzip \
&& nix-env -iA cachix -f https://cachix.org/api/v1/install \
&& cachix use xe \
&& nix-env -e cachix \
&& nix-collect-garbage
WORKDIR /xe/pkgs
COPY . .
RUN nix-build default.nix && nix-collect-garbage