Steveeeeeeen HF staff commited on
Commit
04e5e87
·
verified ·
1 Parent(s): 748ecaa

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM pytorch/pytorch:2.6.0-cuda12.4-cudnn9-devel
2
+
3
+ # Install dependencies
4
+ RUN pip install uv
5
+
6
+ RUN apt update && \
7
+ apt install -y espeak-ng && \
8
+ rm -rf /var/lib/apt/lists/*
9
+
10
+ # Set working directory
11
+ WORKDIR /app
12
+
13
+ # Copy application files
14
+ COPY . .
15
+
16
+ # Install Python dependencies
17
+ RUN uv pip install --system -e . && uv pip install --system -e .[compile]
18
+
19
+ # Expose the Gradio default port
20
+ EXPOSE 7860
21
+
22
+ # Run the Gradio app
23
+ CMD ["uv", "run", "app.py"]