livestream/docker.nix

21 lines
322 B
Nix
Raw Permalink Normal View History

2023-07-26 03:23:33 +03:00
{
pkgs,
default,
nix2container,
}:
nix2container.packages.${pkgs.system}.nix2container.buildImage {
name = "livestream";
tag = "latest";
2023-06-13 00:07:14 +03:00
2023-07-26 03:23:33 +03:00
copyToRoot = with pkgs; [
cacert
ffmpeg
];
2023-06-13 00:07:14 +03:00
2023-07-26 03:23:33 +03:00
config = {
entrypoint = ["${default}/bin/livestream"];
workdir = "/app";
exposed_ports = [3000];
};
}