Gros nettoyage
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
# Database
|
||||
DATABASE_URL=postgresql://audio_user:audio_password@localhost:5432/audio_classifier
|
||||
|
||||
# API Configuration
|
||||
CORS_ORIGINS=http://localhost:3000,http://127.0.0.1:3000
|
||||
|
||||
# Audio Analysis
|
||||
ANALYSIS_USE_CLAP=false
|
||||
ANALYSIS_NUM_WORKERS=4
|
||||
ESSENTIA_MODELS_PATH=./models
|
||||
|
||||
# Audio Library
|
||||
AUDIO_LIBRARY_PATH=/path/to/your/audio/library
|
||||
@@ -1,35 +0,0 @@
|
||||
FROM python:3.11-slim
|
||||
|
||||
# Install system dependencies
|
||||
RUN apt-get update && apt-get install -y \
|
||||
ffmpeg \
|
||||
libsndfile1 \
|
||||
gcc \
|
||||
g++ \
|
||||
curl \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Upgrade pip
|
||||
RUN pip install --no-cache-dir --upgrade pip setuptools wheel
|
||||
|
||||
# Copy minimal requirements
|
||||
COPY requirements-minimal.txt .
|
||||
|
||||
# Install dependencies
|
||||
RUN pip install --no-cache-dir -r requirements-minimal.txt
|
||||
|
||||
# Copy application code
|
||||
COPY src/ ./src/
|
||||
COPY alembic.ini .
|
||||
|
||||
# Create models directory
|
||||
RUN mkdir -p /app/models
|
||||
|
||||
# Expose port
|
||||
EXPOSE 8000
|
||||
|
||||
# Run server (skip migrations for now)
|
||||
CMD uvicorn src.api.main:app --host 0.0.0.0 --port 8000
|
||||
@@ -1,31 +0,0 @@
|
||||
# Minimal requirements (without Essentia for faster build)
|
||||
|
||||
# Web Framework
|
||||
fastapi==0.109.0
|
||||
uvicorn[standard]==0.27.0
|
||||
python-multipart==0.0.6
|
||||
|
||||
# Database
|
||||
sqlalchemy==2.0.25
|
||||
psycopg2-binary==2.9.9
|
||||
pgvector==0.2.4
|
||||
alembic==1.13.1
|
||||
|
||||
# Audio Processing (without Essentia)
|
||||
librosa==0.10.1
|
||||
soundfile==0.12.1
|
||||
audioread==3.0.1
|
||||
mutagen==1.47.0
|
||||
|
||||
# Scientific Computing
|
||||
numpy==1.24.3
|
||||
scipy==1.11.4
|
||||
|
||||
# Configuration & Validation
|
||||
pydantic==2.5.3
|
||||
pydantic-settings==2.1.0
|
||||
python-dotenv==1.0.0
|
||||
|
||||
# Utilities
|
||||
aiofiles==23.2.1
|
||||
httpx==0.26.0
|
||||
Reference in New Issue
Block a user