diff --git a/nixpacks.toml b/nixpacks.toml index d64e955..627d2e7 100644 --- a/nixpacks.toml +++ b/nixpacks.toml @@ -1,7 +1,7 @@ -providers = ['python'] - [phases.setup] nixPkgs = ['python310'] -cmds = ['apt-get update','apt-get install -y --no-install-recommends ffmpeg espeak libavcodec-extra','python -m venv /opt/venv && . /opt/venv/bin/activate && pip install -r requirements-optional.txt'] +cmds = ['apt-get update','apt-get install -y --no-install-recommends ffmpeg espeak libavcodec-extra'] +[phases.install] +cmds = ['python -m venv /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt && pip install -r requirements-optional.txt'] [start] cmd = "python ./app.py" \ No newline at end of file