-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathdocker.nix
More file actions
23 lines (20 loc) · 757 Bytes
/
Copy pathdocker.nix
File metadata and controls
23 lines (20 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ pkgsLink ? (builtins.fetchTarball https://github.com/NixOS/nixpkgs/archive/1e90c46c2d98f9391df79954a74d14f263cad729.tar.gz)}:
let
pkgs = import pkgsLink {};
pkg = pkgs.callPackage ./default.nix {};
debian = pkgs.dockerTools.pullImage {
imageName = "debian";
imageDigest = "sha256:666ffd4fbcdff07edcbd65f0ec1dc86ed294f5e3be93eb26280575f77427df46";
sha256 = "1wmzsj63i0jmsxp5gsmmlz7cx500xfv2lwcifgkir5gldyc3pnll";
};
in
pkgs.dockerTools.buildImage {
name = "gregoryschwartz/too-many-cells";
tag = "latest";
fromImage = debian;
contents = pkg;
created = "now"; # Breaks reproducibility but enables sane build time point.
config = {
Entrypoint = [ "too-many-cells" ];
};
}