14 lines
390 B
Docker
14 lines
390 B
Docker
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
|