tejash300 commited on
Commit
350cd25
Β·
verified Β·
1 Parent(s): 4b2e992

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -8
Dockerfile CHANGED
@@ -1,13 +1,9 @@
1
- # βœ… Use Python 3.9 as the base image
2
  FROM python:3.9
3
 
4
  # βœ… Set the working directory
5
  WORKDIR /app
6
 
7
- # βœ… Create a non-root user
8
- RUN useradd -m appuser
9
- USER appuser
10
-
11
  # βœ… Install system dependencies (FFmpeg for audio processing)
12
  RUN apt-get update && apt-get install -y \
13
  ffmpeg \
@@ -18,12 +14,11 @@ RUN apt-get update && apt-get install -y \
18
  # βœ… Copy project files
19
  COPY . .
20
 
21
- # βœ… Install Python dependencies inside user space
22
- RUN pip install --no-cache-dir --user -r requirements.txt
23
 
24
  # βœ… Expose required ports (FastAPI & Streamlit)
25
  EXPOSE 7860 8501
26
 
27
  # βœ… Run both FastAPI and Streamlit
28
  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
29
-
 
1
+ # βœ… Use Python 3.9 as the base image
2
  FROM python:3.9
3
 
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 \
 
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