TarSh8654 commited on
Commit
873b1a0
·
verified ·
1 Parent(s): 8b06036

Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim # Or a specific Python version you need
2
+
3
+ # Install system dependencies for ffmpeg and common OpenCV needs
4
+ RUN apt-get update && apt-get install -y \
5
+ ffmpeg \
6
+ libsm6 \
7
+ libxext6 \
8
+ git \
9
+ build-essential \
10
+ # Add any other system libraries found in your specific error logs
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ # Set working directory
14
+ WORKDIR /app
15
+
16
+ # Copy requirements.txt and install Python dependencies
17
+ COPY requirements.txt .
18
+ RUN pip install --no-cache-dir -r requirements.txt
19
+
20
+ # Copy your application code
21
+ COPY . .
22
+
23
+ # Define the command to run your app
24
+ CMD ["python", "app_gradio.py"] # Or "streamlit run app_streamlit.py"