ZeeAI1 commited on
Commit
012e08b
·
verified ·
1 Parent(s): 6c9fc39

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +28 -0
Dockerfile ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Set environment variables
4
+ ENV PIP_NO_CACHE_DIR=true \
5
+ PYTHONDONTWRITEBYTECODE=1 \
6
+ PYTHONUNBUFFERED=1
7
+
8
+ # Install system dependencies
9
+ RUN apt-get update && apt-get install -y \
10
+ ffmpeg \
11
+ libsndfile1 \
12
+ git \
13
+ && apt-get clean
14
+
15
+ # Set workdir
16
+ WORKDIR /app
17
+
18
+ # Copy files
19
+ COPY requirements.txt requirements.txt
20
+ COPY app.py app.py
21
+
22
+ # Install Python dependencies
23
+ RUN pip install --upgrade pip
24
+ RUN pip install numpy==1.24.3
25
+ RUN pip install -r requirements.txt
26
+
27
+ # Run the Streamlit app
28
+ CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]