File size: 702 Bytes
ff203cb
 
247286d
 
 
 
 
 
 
ff203cb
 
 
 
 
247286d
 
 
 
 
ff203cb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Use an official Anaconda runtime as a parent image
FROM continuumio/miniconda3

# Set the working directory in the container
WORKDIR /app

# Copy the current directory contents into the container at /app
ADD . /app

# Create a new environment with required dependencies
RUN conda create -n myenv python=3.10 \
    && conda activate myenv \
    && conda install -y numpy==1.18.5 flask==2.0.2 \
    && pip install spleeter==2.1.0 autochord==0.0.1 pretty_midi==0.2.9 librosa==0.8.1 matchering==2.0.1 pedalboard==0.4.0 scipy==1.7.1

# Expose the port Flask is running on
EXPOSE 5000

# Run app.py when the container launches
CMD ["conda", "run", "--no-capture-output", "-n", "myenv", "python", "app.py"]