We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c321a2 commit 8303822Copy full SHA for 8303822
1 file changed
nixpacks.toml
@@ -4,8 +4,8 @@ nixPkgs = ["python312Full"]
4
# Use the default Python install behavior but ensure we use the right requirements file
5
[phases.install]
6
cmds = [
7
- "python -m pip install --upgrade pip",
8
- "python -m pip install -r backend/requirements.txt"
+ "/opt/venv/bin/python -m pip install --upgrade pip",
+ "/opt/venv/bin/python -m pip install -r backend/requirements.txt"
9
]
10
11
@@ -17,7 +17,7 @@ cmds = [
17
18
[start]
19
# Run directly from the root directory since we copied the files there
20
-cmd = "uvicorn main:app --host 0.0.0.0 --port $PORT"
+cmd = "/opt/venv/bin/uvicorn main:app --host 0.0.0.0 --port $PORT"
21
22
[variables]
23
PYTHONPATH = "/app"
0 commit comments