Add building a docker file

This commit is contained in:
George Shammas 2020-11-16 21:42:21 -05:00
parent 0f6591ff04
commit ea94c5e417
1 changed files with 18 additions and 2 deletions

View File

@ -46,9 +46,25 @@
'';
});
ifconfigio-docker = with final;
with pkgs;
(dockerTools.buildLayeredImage {
name = "ifconfig.io";
tag = version;
created = "now";
contents = [ ifconfigio busybox ];
config = {
Cmd = "/bin/ifconfig.io";
WorkingDir = "/usr/lib/ifconfig.io";
ExposedPorts = { "8080" = { }; };
Env = [ "HOSTNAME=ifconfig.io" "TLS=0" "TLSCERT=" "TLSKEY=" ];
};
packages =
forAllSystems (system: { inherit (nixpkgsFor.${system}) ifconfigio; });
});
};
packages = forAllSystems (system: {
inherit (nixpkgsFor.${system}) ifconfigio ifconfigio-docker;
});
defaultPackage =
forAllSystems (system: self.packages.${system}.ifconfigio);