garyuzair commited on
Commit
74d0603
·
verified ·
1 Parent(s): 7544cc0

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +27 -0
Dockerfile ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use official lightweight Python image
2
+ FROM python:3.10-slim
3
+
4
+ # Disable HF telemetry
5
+ ENV HF_HUB_DISABLE_TELEMETRY=1
6
+
7
+ # Install system-level dependencies
8
+ RUN apt-get update && apt-get install -y \
9
+ libvips-dev \
10
+ ffmpeg \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ # Set working directory
14
+ WORKDIR /app
15
+
16
+ # Copy dependency file and install Python packages
17
+ COPY requirements.txt ./
18
+ RUN pip install --no-cache-dir -r requirements.txt
19
+
20
+ # Copy application source
21
+ COPY . .
22
+
23
+ # Expose the port Streamlit will run on
24
+ EXPOSE 7860
25
+
26
+ # Run the Streamlit app
27
+ CMD ["streamlit", "run", "app.py", "--server.port", "7860", "--server.address", "0.0.0.0"]