AudioTranscriber / setup.sh
PatienceIzere's picture
Update setup.sh
e0c1c68 verified
#!/bin/bash
set -e # Exit on error
# Update package list
apt-get update
# Install system dependencies
apt-get install -y \
ffmpeg \
libsndfile1 \
portaudio19-dev \
python3-pip \
python3-dev \
libasound2-plugins \
libportaudio2 \
libportaudiocpp0 \
portaudio19-dev
# Clean up to reduce image size
apt-get clean
rm -rf /var/lib/apt/lists/*
# Install Python dependencies
if [ -f "requirements.txt" ]; then
pip install --no-cache-dir -r requirements.txt
else
echo "WARNING: requirements.txt not found, skipping Python package installation"
echo "This is normal during the first build stage"
fi
#pip install -r requirements.txt