-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathdefault.nix
More file actions
51 lines (50 loc) · 1.07 KB
/
default.nix
File metadata and controls
51 lines (50 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# SPDX-FileCopyrightText: 2024-2026 Cloudflare Inc., Luke Curley, Mike English and contributors
# SPDX-License-Identifier: MIT OR Apache-2.0
{
pkgs ? import <nixpkgs> { },
}:
rec {
moq-rs = pkgs.callPackage ./package.nix { };
default = moq-rs;
publish = pkgs.dockerTools.buildLayeredImage {
name = "moq-pub";
tag = "latest";
contents = pkgs.buildEnv {
name = "image-root";
paths = with pkgs; [
bashInteractive
coreutils
ffmpeg
wget
moq-rs
];
pathsToLink = [ "/bin" ];
};
config = {
Entrypoint = [ "bash" ];
Cmd = [ deploy/publish ];
};
};
relay = pkgs.dockerTools.buildLayeredImage {
name = "moq-relay";
tag = "latest";
contents = pkgs.buildEnv {
name = "image-root";
paths = with pkgs; [
bashInteractive
coreutils
curl
dockerTools.caCertificates
moq-rs
];
pathsToLink = [
"/bin"
"/etc"
];
};
config = {
Entrypoint = [ "bash" ];
Cmd = [ "moq-relay" ];
};
};
}