diff --git a/nixpacks.toml b/nixpacks.toml new file mode 100644 index 0000000..13eec4f --- /dev/null +++ b/nixpacks.toml @@ -0,0 +1,31 @@ +[phases.setup] +nixPkgs = [ + "python311", + "cairo", + "pango", + "gdk-pixbuf", + "glib", + "harfbuzz", + "libjpeg", + "openjpeg", + "libxcb", + "bash", + "gcc" +] + +[phases.install] +cmds = [ + "python -m venv .venv", + ". .venv/bin/activate", + "pip install --upgrade pip", + "pip install -r requirements.txt" +] + +[phases.build] +cmds = [ + ". .venv/bin/activate", + "python manage.py collectstatic --noinput" +] + +[start] +cmd = ". .venv/bin/activate && gunicorn config.wsgi:application --bind 0.0.0.0:8000"