GPTfree api commited on
Commit
e169ed7
·
verified ·
1 Parent(s): b74d368

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -20
Dockerfile CHANGED
@@ -1,33 +1,31 @@
 
1
  FROM python:3.9-slim
2
 
3
- # Install system dependencies
4
  RUN apt-get update && apt-get install -y \
5
  git \
6
- build-essential \
7
- g++ \
8
- python3-dev \
9
  ffmpeg \
10
- libsndfile1 \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
- # Upgrade pip
14
- RUN pip install --upgrade pip==23.3
15
-
16
- # Clone the repository
17
  WORKDIR /app
18
- RUN git clone https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI
19
 
20
- # Set the working directory
21
- WORKDIR /app/Retrieval-based-Voice-Conversion-WebUI
22
 
23
- # Install Python dependencies
24
- RUN pip install -r requirements.txt
25
 
26
- # Ensure proper permissions for configs directory
27
- RUN chmod -R ugo+rw configs
 
 
28
 
29
- # Expose the necessary port for the web interface
30
- EXPOSE 7897
 
31
 
32
- # Run the application
33
- CMD ["python3", "infer-web.py", "--port", "7897"]
 
1
+ # ベースイメージ
2
  FROM python:3.9-slim
3
 
4
+ # 必要なシステムパッケージをインストール
5
  RUN apt-get update && apt-get install -y \
6
  git \
7
+ gcc g++ \
 
 
8
  ffmpeg \
9
+ && apt-get clean \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
+ # 作業ディレクトリを作成
 
 
 
13
  WORKDIR /app
 
14
 
15
+ # コードをリポジトリからクローン
16
+ RUN git clone https://github.com/your-organization/Retrieval-based-Voice-Conversion-WebUI.git .
17
 
18
+ # Python依存ライブラリのインストール
19
+ COPY requirements.txt .
20
 
21
+ # librosa numba の互換性を考慮したバージョンをインストール
22
+ RUN pip install --upgrade pip \
23
+ && pip install librosa==0.9.2 numba==0.55.2 llvmlite==0.38.0 \
24
+ && pip install -r requirements.txt
25
 
26
+ # 環境変数で numba JIT キャッシュを無効化
27
+ ENV NUMBA_CACHE_DIR=/tmp/numba_cache
28
+ ENV NUMBA_DISABLE_JIT=1
29
 
30
+ # コンテナ起動時のデフォルトコマンド
31
+ CMD ["python", "infer-web.py"]