Create Dockerfile
Browse files- Dockerfile +15 -0
Dockerfile
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.10-slim
|
| 2 |
+
|
| 3 |
+
# espeak-ng をインストール
|
| 4 |
+
RUN apt update && \
|
| 5 |
+
apt install -y espeak-ng && \
|
| 6 |
+
apt clean
|
| 7 |
+
|
| 8 |
+
# 必要なPythonパッケージ
|
| 9 |
+
RUN pip install gradio requests
|
| 10 |
+
|
| 11 |
+
# アプリをコピー
|
| 12 |
+
COPY app.py /app/app.py
|
| 13 |
+
WORKDIR /app
|
| 14 |
+
|
| 15 |
+
CMD ["python", "app.py"]
|