-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (32 loc) · 1.1 KB
/
Dockerfile
File metadata and controls
39 lines (32 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM python:3.10-slim
# System dependencies for audio processing
RUN apt-get update && apt-get install -y --no-install-recommends \
libsndfile1 \
ffmpeg \
portaudio19-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Install Python dependencies (heavy ones first for caching)
RUN pip install --no-cache-dir \
torch --index-url https://download.pytorch.org/whl/cpu
RUN pip install --no-cache-dir \
demucs \
sounddevice>=0.4.6 \
soundfile>=0.12.0 \
numpy>=1.24.0 \
scipy>=1.10.0 \
librosa>=0.10.0 \
pyyaml>=6.0 \
matplotlib>=3.7.0
# Copy application code
COPY audio-reactive/viewer/ /app/audio-reactive/viewer/
COPY audio-reactive/effects/ /app/audio-reactive/effects/
COPY audio-reactive/hardware/ /app/audio-reactive/hardware/
COPY audio-reactive/research/separation/ /app/audio-reactive/research/separation/
# Create audio directory (mount point for user's music)
RUN mkdir -p /app/audio-reactive/research/audio-segments
# Expose port
EXPOSE 8080
# Run the viewer
WORKDIR /app/audio-reactive/viewer
CMD ["python", "explore.py", "--port", "8080", "--host", "0.0.0.0"]