Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +16 -11
Dockerfile
CHANGED
@@ -1,17 +1,22 @@
|
|
1 |
-
|
2 |
-
FROM python:3.9-slim
|
3 |
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
-
|
7 |
COPY requirements.txt .
|
8 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
9 |
|
10 |
-
#
|
11 |
-
|
12 |
-
RUN touch weak_phrases.json && chmod 666 weak_phrases.json
|
13 |
|
14 |
-
|
15 |
-
EXPOSE 7860
|
16 |
|
17 |
-
CMD ["
|
|
|
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 |
+
# 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 |
+
# pipを最新版にアップグレード
|
12 |
+
RUN python3 -m pip install --upgrade pip
|
13 |
|
14 |
+
WORKDIR /app
|
15 |
COPY requirements.txt .
|
|
|
16 |
|
17 |
+
# requirements.txtのインストール
|
18 |
+
RUN python3 -m pip install --no-cache-dir -r requirements.txt
|
|
|
19 |
|
20 |
+
COPY . .
|
|
|
21 |
|
22 |
+
CMD ["python3", "app.py"]
|