Add server deployment support with Essentia
- Add install-server.sh for easy deployment on Linux servers - Update Dockerfile to auto-detect architecture (x86_64/ARM64) - Add deploy.sh for remote deployment - Update requirements.txt with Essentia support notes 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -26,6 +26,23 @@ COPY requirements.txt .
|
||||
# Install Python dependencies in stages for better caching
|
||||
RUN pip install --no-cache-dir numpy==1.24.3
|
||||
RUN pip install --no-cache-dir scipy==1.11.4
|
||||
|
||||
# Install Essentia - detect architecture and install appropriate wheel
|
||||
RUN ARCH=$(uname -m) && \
|
||||
if [ "$ARCH" = "x86_64" ]; then \
|
||||
echo "Installing Essentia for x86_64..." && \
|
||||
pip install --no-cache-dir --trusted-host essentia.upf.edu \
|
||||
https://essentia.upf.edu/python-wheels/essentia-2.1_beta6.dev374-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl || \
|
||||
echo "Essentia installation failed, using fallback mode"; \
|
||||
elif [ "$ARCH" = "aarch64" ]; then \
|
||||
echo "Installing Essentia for aarch64..." && \
|
||||
pip install --no-cache-dir --trusted-host essentia.upf.edu \
|
||||
https://essentia.upf.edu/python-wheels/essentia-2.1_beta6.dev374-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl || \
|
||||
echo "Essentia installation failed, using fallback mode"; \
|
||||
else \
|
||||
echo "Unsupported architecture: $ARCH, using fallback mode"; \
|
||||
fi
|
||||
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy application code
|
||||
|
||||
Reference in New Issue
Block a user