AitBAD commited on
Commit
e965f87
·
verified ·
1 Parent(s): d8c511e

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -36
Dockerfile DELETED
@@ -1,36 +0,0 @@
1
- # Use Python 3.10 slim image
2
- FROM python:3.10-slim
3
-
4
- # Set working directory
5
- WORKDIR /app
6
-
7
- # Install system dependencies
8
- RUN apt-get update && apt-get install -y \
9
- build-essential \
10
- ffmpeg \
11
- libsndfile1 \
12
- sox \
13
- && rm -rf /var/lib/apt/lists/*
14
-
15
- # === Force install the required websockets version first ===
16
- # This step is critical to ensure the correct version is present.
17
- RUN pip install --no-cache-dir "websockets>=10.0,<13.0"
18
-
19
- # Copy requirements.txt
20
- COPY requirements.txt .
21
-
22
- # Install the rest of the dependencies
23
- # This might downgrade websockets, but we will fix it in the next step
24
- RUN pip install --no-cache-dir -r requirements.txt
25
-
26
- # === FINAL STEP: Re-install websockets to ensure compatibility with Gradio ===
27
- RUN pip install --no-cache-dir --force-reinstall "websockets>=10.0,<13.0"
28
-
29
- # Copy app files
30
- COPY backend.py app.py ./
31
-
32
- # Expose port
33
- EXPOSE 7860
34
-
35
- # Run app
36
- CMD ["python", "app.py"]