Asad235 commited on
Commit
ff88c91
·
verified ·
1 Parent(s): 47f9800

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -5
Dockerfile CHANGED
@@ -1,17 +1,20 @@
1
  FROM python:3.10-slim
2
 
3
- # Install system dependencies
4
  RUN apt-get update && apt-get install -y \
5
- espeak-ng \
6
  ffmpeg \
 
 
 
 
7
  && rm -rf /var/lib/apt/lists/*
8
 
9
  WORKDIR /app
10
 
11
- # Copy and install dependencies
12
  COPY requirements.txt .
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
- # Copy and run the app
16
  COPY app.py .
17
- CMD ["python", "app.py"]
 
 
 
 
1
  FROM python:3.10-slim
2
 
 
3
  RUN apt-get update && apt-get install -y \
 
4
  ffmpeg \
5
+ libsm6 \
6
+ libxext6 \
7
+ libxrender-dev \
8
+ libgomp1 \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
  WORKDIR /app
12
 
 
13
  COPY requirements.txt .
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
 
16
  COPY app.py .
17
+
18
+ EXPOSE 7860
19
+
20
+ CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]