23 lines
509 B
TOML
23 lines
509 B
TOML
# nixpacks.toml
|
|
[phases.setup]
|
|
# Ensure required dependencies are installed
|
|
commands = [
|
|
"apt-get update && apt-get install -y unzip curl",
|
|
"curl -fsSL https://bun.sh/install | bash",
|
|
"export PATH=$HOME/.bun/bin:$PATH",
|
|
"bun install"
|
|
]
|
|
|
|
[phases.build]
|
|
# Install dependencies and build the application using Bun
|
|
commands = [
|
|
"bun build"
|
|
]
|
|
|
|
[phases.start]
|
|
# Start the application using Bun
|
|
commands = ["bun start"]
|
|
|
|
[environment]
|
|
# Ensure Bun is available in the runtime
|
|
PATH = "$HOME/.bun/bin:$PATH"
|