- Remove mpv-libs and libmpv.so symlink (browser plays audio now) - Keep ffmpeg/ffmpeg-libs (used by librosa and waveform extraction) - Keep libsndfile and its symlink (used by soundfile package)
20 lines
381 B
Docker
20 lines
381 B
Docker
FROM python:3.11-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
# Audio stack: ffmpeg for MP3 waveform + librosa, libsndfile for soundfile
|
|
RUN apk add --no-cache \
|
|
ffmpeg \
|
|
ffmpeg-libs \
|
|
libsndfile && \
|
|
ln -sf /usr/lib/libsndfile.so.1 /usr/lib/libsndfile.so
|
|
|
|
COPY pyproject.toml .
|
|
RUN pip install --no-cache-dir .
|
|
|
|
COPY lightsync/ lightsync/
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["python", "-m", "lightsync"]
|