DerYur commited on
Commit
d2dc38c
·
verified ·
1 Parent(s): 5fd7a0f

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +29 -0
Dockerfile ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use Python base image
2
+ FROM python:3.10-slim
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Install OS-level dependencies
8
+ RUN apt-get update && apt-get install -y \
9
+ git \
10
+ ffmpeg \
11
+ libsndfile1 \
12
+ libportaudio2 \
13
+ && rm -rf /var/lib/apt/lists/*
14
+
15
+ # Copy all app code
16
+ COPY . .
17
+
18
+ # Install Python dependencies
19
+ RUN pip install --no-cache-dir -r requirements.txt
20
+
21
+ # Prevent Streamlit telemetry
22
+ ENV STREAMLIT_SERVER_HEADLESS=true
23
+ ENV STREAMLIT_BROWSER_GATHER_USAGE_STATS=false
24
+
25
+ # Expose port for Streamlit
26
+ EXPOSE 7860
27
+
28
+ # Start with your launcher
29
+ CMD ["python", "app.py"]