Add building a docker file
This commit is contained in:
parent
0f6591ff04
commit
ea94c5e417
20
flake.nix
20
flake.nix
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue