|
FROM ubuntu:24.04 |
|
|
|
ENV DEBIAN_FRONTEND=noninteractive |
|
|
|
|
|
RUN rm -rf /var/lib/apt/lists/* && \ |
|
apt-get clean && \ |
|
apt-get update && \ |
|
apt-get install --fix-missing -y wget unzip curl || apt-get install -y -f && \ |
|
apt-get clean |
|
|
|
|
|
|
|
RUN wget https://github.com/Audiveris/audiveris/releases/download/5.6.1/Audiveris-5.6.1-ubuntu24.04-x86_64.deb |
|
|
|
|
|
|
|
RUN dpkg-deb -R Audiveris-5.6.1-ubuntu24.04-x86_64.deb /tmp/audiveris |
|
|
|
|
|
RUN echo -e '#!/bin/sh\nexit 0' > /tmp/audiveris/DEBIAN/postinst |
|
RUN chmod +x /tmp/audiveris/DEBIAN/postinst |
|
|
|
|
|
RUN dpkg-deb -b /tmp/audiveris /tmp/audiveris-fixed.deb |
|
|
|
|
|
RUN apt-get install --fix-missing -y /tmp/audiveris-fixed.deb || apt-get install --fix-missing -y -f |
|
|
|
|
|
RUN rm Audiveris-5.6.1-ubuntu24.04-x86_64.deb |
|
|
|
|
|
RUN apt-get install --fix-missing -y python3 python3-pip || apt-get install -y -f |
|
|
|
RUN pip install --break-system-packages gradio[mcp] |
|
|
|
|
|
RUN apt-get clean |
|
|
|
|
|
COPY app.py /app/app.py |
|
WORKDIR /app |
|
|
|
CMD ["python3", "app.py"] |
|
|