sathish2352 commited on
Commit
f5a501e
·
verified ·
1 Parent(s): 5fdc413

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -1,15 +1,15 @@
1
- # Use a base Python image
 
2
  FROM python:3.9
3
 
4
- # Set working directory inside the container
5
  WORKDIR /code
6
 
7
- # Copy dependencies file and install them
8
  COPY requirements.txt .
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
11
- # Copy your actual app
12
- COPY app.py .
 
 
13
 
14
- # Command to run your app
15
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ # Dockerfile
2
+
3
  FROM python:3.9
4
 
 
5
  WORKDIR /code
6
 
 
7
  COPY requirements.txt .
8
  RUN pip install --no-cache-dir -r requirements.txt
9
 
10
+ COPY . .
11
+
12
+ # ✅ Create audio directory with write permissions
13
+ RUN mkdir -p /code/audio && chmod 777 /code/audio
14
 
 
15
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]