SaltProphet commited on
Commit
74d6434
·
verified ·
1 Parent(s): 3ed9877

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -0
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a Python base image
2
+ FROM python:3.10-slim
3
+
4
+ # Install system dependencies required by Spleeter and audio processing libraries.
5
+ # FFmpeg is crucial for Spleeter to load and save various audio formats.
6
+ RUN apt-get update && \
7
+ apt-get install -y --no-install-recommends \
8
+ ffmpeg \
9
+ git && \
10
+ rm -rf /var/lib/apt/lists/*
11
+
12
+ # Set up the working directory
13
+ WORKDIR /app
14
+
15
+ # Copy requirements file and install Python packages
16
+ COPY requirements.txt .
17
+ RUN pip install --no-cache-dir -r requirements.txt
18
+
19
+ # Copy the application file
20
+ COPY app.py .
21
+
22
+ # Expose the Gradio port (standard)
23
+ EXPOSE 7860
24
+
25
+ # Define the command to run the application
26
+ CMD ["python", "app.py"]