-
Notifications
You must be signed in to change notification settings - Fork 3
/
nixpacks.toml
38 lines (33 loc) · 832 Bytes
/
nixpacks.toml
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
providers = []
buildImage = 'ghcr.io/railwayapp/nixpacks:ubuntu-1722902622'
[variables]
CI = 'true'
NIXPACKS_METADATA = 'node'
NODE_ENV = 'production'
NPM_CONFIG_PRODUCTION = 'false'
[phases.build]
dependsOn = ['install']
cmds = ['pnpm run build']
cacheDirectories = [
'.next/cache',
'node_modules/.cache',
]
[phases.install]
dependsOn = ['setup']
cmds = [
'npm install -g [email protected] && corepack enable',
'pnpm i --frozen-lockfile',
]
cacheDirectories = ['/root/.local/share/pnpm/store/v3']
paths = ['/app/node_modules/.bin']
[phases.setup]
nixPkgs = [
'nodejs_18',
'pnpm-8_x',
'openssl',
]
nixLibs = ['gcc-unwrapped']
nixOverlays = ['https://github.com/railwayapp/nix-npm-overlay/archive/main.tar.gz']
nixpkgsArchive = 'e05605ec414618eab4a7a6aea8b38f6fbbcc8f08'
[start]
cmd = 'pnpm run start'