TGPro1 commited on
Commit
29224b8
·
verified ·
1 Parent(s): 419a48e

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +30 -0
Dockerfile ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM pytorch/pytorch:2.1.2-cuda11.8-cudnn8-runtime
2
+
3
+ WORKDIR /app
4
+
5
+ # Install system dependencies
6
+ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
7
+ ffmpeg \
8
+ libsndfile1 \
9
+ git \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ # Install Python dependencies
13
+ COPY requirements.txt .
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ # Copy application files
17
+ COPY . .
18
+
19
+ # Set environment
20
+ ENV COQUI_TOS_AGREED=1
21
+ ENV PYTHONUNBUFFERED=1
22
+ ENV GRADIO_SERVER_NAME="0.0.0.0"
23
+ ENV GRADIO_SERVER_PORT=7860
24
+
25
+ # Expose port
26
+ EXPOSE 7860
27
+
28
+ # Run application
29
+ # Using python directly to trigger the __main__ block and warmup
30
+ CMD ["python", "app.py"]