SohomToom commited on
Commit
ff75987
·
verified ·
1 Parent(s): 71f15e0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -5
Dockerfile CHANGED
@@ -1,15 +1,25 @@
1
  FROM python:3.10-slim
2
 
3
- # Install dependencies
4
  RUN apt-get update && \
5
- apt-get install -y git ffmpeg libsndfile1 libglib2.0-0 libsm6 libxext6 libxrender-dev fontconfig && \
6
- mecab libmecab-dev mecab-ipadic-utf8 && \
 
 
 
 
 
 
 
 
 
 
7
  apt-get clean && rm -rf /var/lib/apt/lists/*
8
 
9
  # Set working directory
10
  WORKDIR /app
11
 
12
- # Copy files
13
  COPY . /app
14
 
15
  # Install Python dependencies
@@ -20,4 +30,4 @@ RUN pip install -r requirements.txt
20
  EXPOSE 7860
21
 
22
  # Run the app
23
- CMD ["python", "app.py"]
 
1
  FROM python:3.10-slim
2
 
3
+ # Install system dependencies including MeCab
4
  RUN apt-get update && \
5
+ apt-get install -y \
6
+ git \
7
+ ffmpeg \
8
+ libsndfile1 \
9
+ libglib2.0-0 \
10
+ libsm6 \
11
+ libxext6 \
12
+ libxrender-dev \
13
+ fontconfig \
14
+ mecab \
15
+ libmecab-dev \
16
+ mecab-ipadic-utf8 && \
17
  apt-get clean && rm -rf /var/lib/apt/lists/*
18
 
19
  # Set working directory
20
  WORKDIR /app
21
 
22
+ # Copy project files
23
  COPY . /app
24
 
25
  # Install Python dependencies
 
30
  EXPOSE 7860
31
 
32
  # Run the app
33
+ CMD ["python", "app.py"]