rein0421 commited on
Commit
66c0dcd
·
verified ·
1 Parent(s): 074316c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -6
Dockerfile CHANGED
@@ -1,15 +1,19 @@
1
  FROM nvidia/cuda:12.1.1-cudnn8-devel-ubuntu22.04
2
 
3
- # タイムゾーンの設定など(必要に応じて)
4
  RUN ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
5
 
6
- # システムパッケージの更新とffmpegのインストール
7
- RUN apt-get update && apt-get install -y ffmpeg
 
 
8
 
9
- # 残りのセットアップ(Pythonのインストール、requirements.txtのインストールなど)
10
  WORKDIR /app
11
  COPY requirements.txt .
12
- RUN pip install --no-cache-dir -r requirements.txt
 
 
 
13
  COPY . .
14
 
15
- CMD ["python", "app.py"]
 
1
  FROM nvidia/cuda:12.1.1-cudnn8-devel-ubuntu22.04
2
 
3
+ # タイムゾーンの設定(必要に応じて)
4
  RUN ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
5
 
6
+ # apt-getでPython3、pip、ffmpegをインストール
7
+ RUN apt-get update && \
8
+ apt-get install -y python3 python3-pip ffmpeg && \
9
+ rm -rf /var/lib/apt/lists/*
10
 
 
11
  WORKDIR /app
12
  COPY requirements.txt .
13
+
14
+ # pipの代わりにpython3 -m pipを使用してインストール
15
+ RUN python3 -m pip install --no-cache-dir -r requirements.txt
16
+
17
  COPY . .
18
 
19
+ CMD ["python3", "app.py"]