MusicAPI / Dockerfile
Jaman's picture
Update Dockerfile
ff203cb verified
raw
history blame
702 Bytes
# 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"]