admin08077 commited on
Commit
ac198d7
·
verified ·
1 Parent(s): 254de59

Create Dockerfile

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