File size: 529 Bytes
7a5d479
 
 
 
 
 
 
fa9d1bd
 
 
 
f5a1a98
 
 
fa9d1bd
 
 
c479b56
fa9d1bd
7a5d479
fa9d1bd
 
7a5d479
 
 
 
 
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
FROM python:3.10-slim

# System deps
RUN apt-get update && apt-get install -y \
    espeak-ng \
    && rm -rf /var/lib/apt/lists/*

# Set environment variable to avoid caching issues
ENV PYTHONPYCACHEPREFIX=/tmp/pycache
ENV LIBROSA_CACHE_DIR=/tmp/librosa_cache

# Prevent Numba/librosa caching errors
ENV NUMBA_DISABLE_CACHE=1

# Set working directory
WORKDIR /app


# Copy and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt


# App
COPY app.py .

CMD ["python", "app.py"]