Anupam007 commited on
Commit
277a863
·
verified ·
1 Parent(s): bbdfd64

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -1
Dockerfile CHANGED
@@ -1,10 +1,22 @@
 
1
  FROM python:3.9-slim-buster
2
 
 
3
  WORKDIR /app
4
 
 
 
 
 
 
 
 
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
 
8
  COPY . .
9
 
10
- CMD ["python", "app.py"]
 
 
1
+ # Use Python 3.9 Slim as Base Image
2
  FROM python:3.9-slim-buster
3
 
4
+ # Set the working directory
5
  WORKDIR /app
6
 
7
+ # Install system dependencies required for moviepy & opencv
8
+ RUN apt-get update && apt-get install -y \
9
+ ffmpeg \
10
+ libsm6 \
11
+ libxext6 \
12
+ && rm -rf /var/lib/apt/lists/*
13
+
14
+ # Copy requirements file and install dependencies
15
  COPY requirements.txt .
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
+ # Copy the application code
19
  COPY . .
20
 
21
+ # Run the application
22
+ CMD ["python", "app.py"]