apicortex / bin /run_ml.sh
0xarchit's picture
fix port issue
a6d64b8
raw
history blame contribute delete
215 Bytes
#!/bin/bash
set -euo pipefail
cd /app/ml-service
export PORT=8001
exec bash -c 'set -o pipefail; PYTHONPATH=/app/ml-service /opt/ml_venv/bin/python -u -m app.main 2>&1 | sed -u "s/^/[ml] /"; exit ${PIPESTATUS[0]}'