File size: 903 Bytes
cb6aae7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c800eaa
cb6aae7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# Use Python 3.11
FROM python:3.11

# Set working directory
WORKDIR /app

# Install system dependencies
RUN apt-get update && apt-get install -y \
    git \
    libsndfile1 \
    fluid-soundfont-gm \
    && rm -rf /var/lib/apt/lists/*

# Upgrade pip before installing dependencies
RUN pip install --upgrade pip

# Copy and install Python dependencies first (before cloning anticipation)
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

# Clone and install Anticipation Music Transformer (AMT)
RUN git clone https://github.com/jthickstun/anticipation.git 

# Install AMT dependencies separately to avoid conflicts
RUN pip install -r anticipation/requirements.txt && \
    pip install ./anticipation 

# Debugging: Check installed packages
RUN pip list

# Copy the application files into the container
COPY . .

# Run the Gradio app
CMD ["python", "app.py"]