Anupam251272 commited on
Commit
873bd84
1 Parent(s): 081374c

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +33 -0
Dockerfile ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Python image
2
+ FROM python:3.10
3
+
4
+ # Set environment variables
5
+ ENV PYTHONDONTWRITEBYTECODE=1
6
+ ENV PYTHONUNBUFFERED=1
7
+
8
+ # Install system dependencies
9
+ RUN apt-get update && apt-get install -y \
10
+ git \
11
+ git-lfs \
12
+ ffmpeg \
13
+ libsm6 \
14
+ libxext6 \
15
+ cmake \
16
+ rsync \
17
+ libgl1-mesa-glx \
18
+ && rm -rf /var/lib/apt/lists/* \
19
+ && git lfs install
20
+
21
+ # Install Python dependencies
22
+ COPY requirements.txt /app/requirements.txt
23
+ WORKDIR /app
24
+ RUN pip install --no-cache-dir -r requirements.txt
25
+
26
+ # Copy the application code
27
+ COPY . /app
28
+
29
+ # Expose the port
30
+ EXPOSE 7860
31
+
32
+ # Run the application
33
+ CMD ["python", "app.py"]