CoolFace
Apppublic

jiba21/orfeo

sourceHugging Faceapache-2.0updated 1y agoView on Hugging Face
0likes
Dockerfile52 linesDownload Raw Back to root
1FROM ubuntu:24.042 3ENV DEBIAN_FRONTEND=noninteractive4 5## Install dependencies6RUN rm -rf /var/lib/apt/lists/* && \7     apt-get clean && \8     apt-get update && \9     apt-get install --fix-missing -y wget unzip curl || apt-get install -y -f && \10     apt-get clean11 12## Download and install Audiveris deb package once patched13 14RUN wget https://github.com/Audiveris/audiveris/releases/download/5.6.1/Audiveris-5.6.1-ubuntu24.04-x86_64.deb15 16## Patch the deb package to work without GUI17# Unpack the .deb18RUN dpkg-deb -R Audiveris-5.6.1-ubuntu24.04-x86_64.deb /tmp/audiveris19 20# Disable post-install script (replace with no-op)21RUN echo -e '#!/bin/sh\nexit 0' > /tmp/audiveris/DEBIAN/postinst22RUN chmod +x /tmp/audiveris/DEBIAN/postinst23 24# Repack the deb25RUN dpkg-deb -b /tmp/audiveris /tmp/audiveris-fixed.deb26 27# Install the modified deb28RUN apt-get install --fix-missing -y /tmp/audiveris-fixed.deb || apt-get install --fix-missing -y -f29 30RUN rm Audiveris-5.6.1-ubuntu24.04-x86_64.deb31 32## Install Python and dependencies33RUN apt-get install --fix-missing -y python3 python3-pip || apt-get install -y -f34 35# Install Python packages36RUN pip install --break-system-packages \37    gradio[mcp] \38    fastapi \39    uvicorn[standard] \40    python-multipart41 42## Clean43RUN apt-get clean44 45## Copy MCP server and execute it46COPY app.py /app/app.py47WORKDIR /app48 49# Expose both ports50EXPOSE 7860 800051 52CMD ["python3", "app.py"]