File size: 624 Bytes
40d5f8f
 
ff75987
2327d97
ff75987
 
 
 
 
 
 
 
 
 
 
 
2327d97
40d5f8f
2327d97
00ff86d
40d5f8f
330737a
 
ff75987
2327d97
 
 
 
 
40d5f8f
2327d97
 
40d5f8f
2327d97
ff75987
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
32
33
34
35
36
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"]