FROM python:3.10-slim # Install system dependencies including MeCab RUN apt-get update && \ apt-get install -y \ git \ ffmpeg \ libsndfile1 \ libglib2.0-0 \ libsm6 \ libxext6 \ libxrender-dev \ fontconfig \ mecab \ libmecab-dev \ mecab-ipadic-utf8 && \ apt-get clean && rm -rf /var/lib/apt/lists/* # Set working directory WORKDIR /app ENV NUMBA_DISABLE_CACHE=1 # Copy project files COPY . /app # Install Python dependencies RUN pip install --upgrade pip RUN pip install -r requirements.txt # Expose port if needed EXPOSE 7860 # Run the app CMD ["python", "app.py"]