2020-02-07 22:49:04 +00:00
|
|
|
{ system ? builtins.currentSystem }:
|
|
|
|
|
|
|
|
let
|
2020-02-13 22:45:21 +00:00
|
|
|
pkgs = import (import ./nix/sources.nix).nixpkgs { inherit system; };
|
2020-02-07 22:49:04 +00:00
|
|
|
callPackage = pkgs.lib.callPackageWith pkgs;
|
|
|
|
site = callPackage ./site.nix { };
|
|
|
|
|
|
|
|
dockerImage = pkg:
|
2020-02-13 22:45:21 +00:00
|
|
|
pkgs.dockerTools.buildLayeredImage {
|
2020-02-07 22:49:04 +00:00
|
|
|
name = "xena/christinewebsite";
|
|
|
|
tag = pkg.version;
|
|
|
|
|
2020-03-28 00:00:44 +00:00
|
|
|
contents = [ pkg pkgs.cacert ];
|
2020-02-07 22:49:04 +00:00
|
|
|
|
|
|
|
config = {
|
|
|
|
Cmd = [ "/bin/site" ];
|
|
|
|
WorkingDir = "/";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
in dockerImage site
|