Spaces:
Running
Running
feat: Create a docker space
Browse files- Dockerfile +22 -0
- README.md +1 -2
Dockerfile
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Base image with Python and essential libraries
|
2 |
+
FROM python:3.8-slim
|
3 |
+
|
4 |
+
# Install system-level dependencies
|
5 |
+
RUN apt-get update && \
|
6 |
+
apt-get install -y espeak && \
|
7 |
+
apt-get clean && rm -rf /var/lib/apt/lists/*
|
8 |
+
|
9 |
+
# Set the working directory
|
10 |
+
WORKDIR /app
|
11 |
+
|
12 |
+
# Copy your files into the container
|
13 |
+
COPY . .
|
14 |
+
|
15 |
+
# Install Python dependencies
|
16 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
17 |
+
|
18 |
+
# Expose the port
|
19 |
+
EXPOSE 7860
|
20 |
+
|
21 |
+
# Run your app
|
22 |
+
CMD ["python", "app.py"]
|
README.md
CHANGED
@@ -3,8 +3,7 @@ title: "Kokoro-82M ONNX Runtime Gradio"
|
|
3 |
emoji: "💡"
|
4 |
colorFrom: "blue"
|
5 |
colorTo: "green"
|
6 |
-
sdk: "
|
7 |
-
sdk_version: "5.12.0"
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
---
|
|
|
3 |
emoji: "💡"
|
4 |
colorFrom: "blue"
|
5 |
colorTo: "green"
|
6 |
+
sdk: "docker"
|
|
|
7 |
app_file: app.py
|
8 |
pinned: false
|
9 |
---
|