admin08077 commited on
Commit
5d99458
·
verified ·
1 Parent(s): ba529fc

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Start with a base image that includes Python
2
+ FROM python:3.10-slim
3
+
4
+ # Install required system packages
5
+ RUN apt-get update && apt-get install -y \
6
+ libzbar0 \
7
+ ffmpeg \
8
+ libsm6 \
9
+ libxext6 \
10
+ cmake \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ # Set up the working directory
14
+ WORKDIR /app
15
+
16
+ # Copy requirements.txt and install Python dependencies
17
+ COPY requirements.txt .
18
+ RUN pip install -r requirements.txt
19
+
20
+ # Copy the rest of the application code
21
+ COPY . .
22
+
23
+ # Run the application
24
+ CMD ["streamlit", "run", "app.py"]