-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
nixpacks.toml
43 lines (36 loc) · 909 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
38
39
40
41
42
providers = ['node']
buildImage = 'ghcr.io/railwayapp/nixpacks:ubuntu-1707782610'
[variables]
CI = 'true'
NIXPACKS_METADATA = 'node'
NODE_ENV = 'production'
NPM_CONFIG_PRODUCTION = 'false'
NIXPACKS_NX_APP_NAME = 'api'
[phases.build]
dependsOn = ['install']
cmds = ['npm run build api']
cacheDirectories = ['node_modules/.cache']
[phases.install]
dependsOn = ['setup']
cmds = ['npm install --legacy-peer-deps', 'npm run postinstall', 'npm run prisma:migrate:prod']
cacheDirectories = [
'/root/.cache/Cypress',
'/root/.npm',
]
paths = ['/app/node_modules/.bin']
[phases.setup]
nixPkgs = [
'nodejs_18',
'npm-6_x',
'openssl',
'python311'
]
nixLibs = [
'libuuid',
'libGL',
]
aptPkgs = ['build-essential']
nixOverlays = ['https://github.com/railwayapp/nix-npm-overlay/archive/main.tar.gz']
nixpkgsArchive = 'bf744fe90419885eefced41b3e5ae442d732712d'
[start]
cmd = 'npm start api'