azharaslam commited on
Commit
eb547f9
1 Parent(s): 9f9764e

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +35 -0
Dockerfile ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a base image with Debian Buster or a compatible version
2
+ FROM python:3.10-slim-buster
3
+
4
+ # Set the working directory
5
+ WORKDIR /home/user/app
6
+
7
+ # Update the package list and install required system packages
8
+ RUN apt-get update && apt-get install -y --no-install-recommends \
9
+ git \
10
+ git-lfs \
11
+ ffmpeg \
12
+ libsm6 \
13
+ libxext6 \
14
+ cmake \
15
+ rsync \
16
+ libgl1-mesa-glx \
17
+ libnss3 \
18
+ libnspr4 \
19
+ libatk1.0-0 \
20
+ libatk-bridge2.0-0 \
21
+ libcups2 \
22
+ libatspi2.0-0 \
23
+ libxcomposite1 \
24
+ libxdamage1 \
25
+ && rm -rf /var/lib/apt/lists/*
26
+
27
+ # Install Python dependencies
28
+ COPY requirements.txt .
29
+ RUN pip install --no-cache-dir -r requirements.txt
30
+
31
+ # Copy the rest of the application code
32
+ COPY . .
33
+
34
+ # Command to run the application
35
+ CMD ["python", "app.py"]