Spaces:
Sleeping
Sleeping
File size: 675 Bytes
706d84d e0c1c68 706d84d e0c1c68 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
#!/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
|