hexachords_docker / Dockerfile
pachet's picture
Update Dockerfile
19f3238
raw
history blame contribute delete
917 Bytes
FROM python:3.12
# Install pip + Gradio dependencies
RUN apt-get update && apt-get install -y \
swig \
g++ \
cmake \
make \
libglib2.0-dev \
libxml2-dev \
libzip-dev \
libcurl4-openssl-dev \
fluidsynth \
libfluidsynth-dev \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
# Install Python packages
RUN pip install --upgrade pip
#RUN pip install verovio
#RUN python3 -c "import verovio, sys; sys.stderr.write('✅ Verovio version: ' + verovio.toolkit().getVersion() + '\n')"
#RUN pip install gradio
#RUN pip install music21
COPY requirements.txt .
RUN pip install -r requirements.txt
# Copy app and MEI file
WORKDIR /app
COPY . .
# Change ownership to user id 1000 (default HF user)
RUN chown -R 1000:1000 /app
# Switch to user id 1000 (non-root, for HF)
USER 1000
RUN which fluidsynth && fluidsynth --version || echo "❌ Fluidsynth not found"
CMD ["python3", "app.py"]