tejash300 commited on
Commit
884c57c
Β·
verified Β·
1 Parent(s): 14f52c9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -14
Dockerfile CHANGED
@@ -4,32 +4,22 @@ FROM python:3.9
4
  # βœ… Set the working directory
5
  WORKDIR /app
6
 
7
- # βœ… Install system dependencies
8
  RUN apt-get update && apt-get install -y \
9
  ffmpeg \
10
  libgl1-mesa-glx \
11
  libglib2.0-0 \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
- # βœ… Upgrade pip
15
- RUN pip install --upgrade pip
16
-
17
- # βœ… Install core dependencies first
18
- RUN pip install --no-cache-dir fastapi uvicorn torch transformers spacy pdfplumber sentence-transformers librosa soundfile requests numpy scipy Pillow opencv-python matplotlib openai-whisper streamlit
19
-
20
- # βœ… Manually install MoviePy separately to ensure it installs correctly
21
- RUN pip install --no-cache-dir moviepy imageio[ffmpeg] --break-system-packages
22
-
23
- # βœ… Ensure moviepy has access to FFmpeg
24
- ENV IMAGEIO_FFMPEG_EXE=/usr/bin/ffmpeg
25
-
26
  # βœ… Copy project files
27
  COPY . .
28
 
 
 
 
29
  # βœ… Expose required ports (FastAPI & Streamlit)
30
  EXPOSE 7860 8501
31
 
32
  # βœ… Run both FastAPI and Streamlit
33
  CMD uvicorn app:app --host 0.0.0.0 --port 7860 & streamlit run app_ui.py --server.port 8501 --server.address 0.0.0.0
34
 
35
-
 
4
  # βœ… Set the working directory
5
  WORKDIR /app
6
 
7
+ # βœ… Install system dependencies (FFmpeg for audio processing)
8
  RUN apt-get update && apt-get install -y \
9
  ffmpeg \
10
  libgl1-mesa-glx \
11
  libglib2.0-0 \
12
  && rm -rf /var/lib/apt/lists/*
13
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  # βœ… Copy project files
15
  COPY . .
16
 
17
+ # βœ… Install Python dependencies
18
+ RUN pip install --no-cache-dir -r requirements.txt
19
+
20
  # βœ… Expose required ports (FastAPI & Streamlit)
21
  EXPOSE 7860 8501
22
 
23
  # βœ… Run both FastAPI and Streamlit
24
  CMD uvicorn app:app --host 0.0.0.0 --port 7860 & streamlit run app_ui.py --server.port 8501 --server.address 0.0.0.0
25