-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcontainer.nix
More file actions
33 lines (31 loc) · 586 Bytes
/
container.nix
File metadata and controls
33 lines (31 loc) · 586 Bytes
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
{
dockerTools,
pkgs,
site,
}:
dockerTools.buildLayeredImage {
name = "sapphic-moe";
tag = "latest";
contents = [
pkgs.nodejs_22
pkgs.coreutils
pkgs.cacert
site
];
config = {
Cmd = [
"${pkgs.nodejs_22}/bin/node"
"${site}/dist/server/entry.mjs"
];
Env = [
"NODE_ENV=production"
"NODE_PATH=${site}/node_modules"
"SSL_CERT_FILE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"
"ASTRO_TELEMETRY_DISABLED=1"
"NPM_CONFIG_UPDATE_NOTIFIER=false"
];
ExposedPorts = {
"4321/tcp" = { };
};
};
}