SameerArz commited on
Commit
d8cb74d
·
verified ·
1 Parent(s): 28aa36f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -15
Dockerfile CHANGED
@@ -1,25 +1,10 @@
1
- # Use an official Python runtime as the base image
2
  FROM python:3.9-slim
3
-
4
- # Set working directory
5
  WORKDIR /app
6
-
7
- # Install system dependencies (e.g., FFmpeg for moviepy)
8
  RUN apt-get update && apt-get install -y \
9
  ffmpeg \
10
  && rm -rf /var/lib/apt/lists/*
11
-
12
- # Copy requirements file
13
  COPY requirements.txt .
14
-
15
- # Install Python dependencies
16
  RUN pip install --no-cache-dir -r requirements.txt
17
-
18
- # Copy the app file
19
  COPY app.py .
20
-
21
- # Expose the port Hugging Face Spaces expects
22
  EXPOSE 7860
23
-
24
- # Command to run the Streamlit app
25
  CMD ["streamlit", "run", "app.py", "--server.port", "7860", "--server.address", "0.0.0.0"]
 
 
1
  FROM python:3.9-slim
 
 
2
  WORKDIR /app
 
 
3
  RUN apt-get update && apt-get install -y \
4
  ffmpeg \
5
  && rm -rf /var/lib/apt/lists/*
 
 
6
  COPY requirements.txt .
 
 
7
  RUN pip install --no-cache-dir -r requirements.txt
 
 
8
  COPY app.py .
 
 
9
  EXPOSE 7860
 
 
10
  CMD ["streamlit", "run", "app.py", "--server.port", "7860", "--server.address", "0.0.0.0"]