Princess7317 commited on
Commit
8195f17
·
verified ·
1 Parent(s): ed1e190

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a Python base image with system dependencies
2
+ FROM python:3.10-slim
3
+
4
+ # Install system dependencies needed for some Python packages
5
+ RUN apt-get update && apt-get install -y cmake build-essential ffmpeg libsndfile1
6
+
7
+ # Set working directory
8
+ WORKDIR /app
9
+
10
+ # Copy requirements file
11
+ COPY requirements.txt /app/
12
+
13
+ # Upgrade pip and install dependencies
14
+ RUN pip install --upgrade pip setuptools wheel && pip install --no-cache-dir -r requirements.txt
15
+
16
+ # Copy all source files
17
+ COPY . /app
18
+
19
+ # Run your app (Replace `app.py` with your actual script)
20
+ CMD ["python", "app.py"]