Offex commited on
Commit
59af8fb
·
verified ·
1 Parent(s): ab9c9e6

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ USER root
4
+
5
+ # System tools install karna (Audio ke liye zaroori hai)
6
+ RUN apt-get update && apt-get install -y ffmpeg libsndfile1
7
+
8
+ WORKDIR /app
9
+
10
+ # Requirements install karna
11
+ COPY requirements.txt requirements.txt
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
+
14
+ # Baaki files copy karna
15
+ COPY . .
16
+
17
+ # Permissions set karna
18
+ RUN mkdir -p /app/voices && chmod 777 /app/voices
19
+
20
+ # App start karna
21
+ CMD ["python", "app.py"]