garyuzair commited on
Commit
6fd3934
·
verified ·
1 Parent(s): ba26b0a

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +29 -0
Dockerfile ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 (including libvips)
8
+ RUN apt-get update && apt-get install -y \
9
+ libvips \
10
+ libvips-dev \
11
+ vips-tools \
12
+ ffmpeg \
13
+ && rm -rf /var/lib/apt/lists/*
14
+
15
+ # Set working directory
16
+ WORKDIR /app
17
+
18
+ # Copy dependency file and install Python packages
19
+ COPY requirements.txt ./
20
+ RUN pip install --no-cache-dir -r requirements.txt
21
+
22
+ # Copy application source
23
+ COPY . .
24
+
25
+ # Expose the port Streamlit will run on
26
+ EXPOSE 7860
27
+
28
+ # Run the Streamlit app
29
+ CMD ["streamlit", "run", "app.py", "--server.port", "7860", "--server.address", "0.0.0.0"]