From 97faf3011ee338ef063eaa7276a392b5f95c6c65 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Fri, 10 Jan 2025 16:23:57 +1100 Subject: [PATCH] feat: Add nixpacks config --- nixpacks.json | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 nixpacks.json diff --git a/nixpacks.json b/nixpacks.json new file mode 100644 index 0000000..750138a --- /dev/null +++ b/nixpacks.json @@ -0,0 +1,50 @@ +{ + "providers": [], + "buildImage": "ghcr.io/railwayapp/nixpacks:ubuntu-1731369831", + "variables": { + "CI": "true", + "NIXPACKS_METADATA": "node", + "NODE_ENV": "production", + "NPM_CONFIG_PRODUCTION": "false" + }, + "phases": { + "build": { + "dependsOn": [ + "install" + ], + "cmds": [ + "yarn run build" + ], + "cacheDirectories": [ + "node_modules/.cache" + ] + }, + "install": { + "dependsOn": [ + "setup" + ], + "cmds": [ + "yarn install --frozen-lockfile" + ], + "cacheDirectories": [ + "/usr/local/share/.cache/yarn/v6" + ], + "paths": [ + "/app/node_modules/.bin" + ] + }, + "setup": { + "nixPkgs": [ + "nodejs_18", + "yarn-1_x" + ], + "nixOverlays": [ + "https://github.com/railwayapp/nix-npm-overlay/archive/main.tar.gz" + ], + "nixpkgsArchive": "e05605ec414618eab4a7a6aea8b38f6fbbcc8f08" + } + }, + "start": { + "cmd": "yarn dev" + } + } \ No newline at end of file