GPTfree api commited on
Commit
13ba054
·
verified ·
1 Parent(s): 5006be9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -7
Dockerfile CHANGED
@@ -1,7 +1,6 @@
1
- # ベースイメージ
2
  FROM python:3.9-slim
3
 
4
- # 必要なシステムパッケージをインストール
5
  RUN apt-get update && apt-get install -y \
6
  git \
7
  gcc g++ \
@@ -9,20 +8,23 @@ RUN apt-get update && apt-get install -y \
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/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git .
17
 
18
- # Python依存ライブラリのインストール
19
  RUN pip install --upgrade pip==23.1 \
20
  && pip install librosa==0.9.2 numba==0.55.2 llvmlite==0.38.0 \
21
  && pip install -r requirements.txt
22
 
23
- # 環境変数で numba JIT キャッシュを無効化
 
 
 
24
  ENV NUMBA_CACHE_DIR=/tmp/numba_cache
25
  ENV NUMBA_DISABLE_JIT=1
26
 
27
- # コンテナ起動時のデフォルトコマンド
28
  CMD ["python", "infer-web.py"]
 
 
1
  FROM python:3.9-slim
2
 
3
+ # Install necessary system packages
4
  RUN apt-get update && apt-get install -y \
5
  git \
6
  gcc g++ \
 
8
  && apt-get clean \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
+ # Set up working directory
12
  WORKDIR /app
13
 
14
+ # Clone the repository
15
  RUN git clone https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git .
16
 
17
+ # Install Python dependencies
18
  RUN pip install --upgrade pip==23.1 \
19
  && pip install librosa==0.9.2 numba==0.55.2 llvmlite==0.38.0 \
20
  && pip install -r requirements.txt
21
 
22
+ # Adjust permissions for the configs directory
23
+ RUN chmod -R 777 configs/inuse
24
+
25
+ # Environment variables
26
  ENV NUMBA_CACHE_DIR=/tmp/numba_cache
27
  ENV NUMBA_DISABLE_JIT=1
28
 
29
+ # Run the application
30
  CMD ["python", "infer-web.py"]