MusicAPI / Dockerfile
Jaman's picture
Update Dockerfile
c0e319b verified
raw
history blame contribute delete
591 Bytes
# Use the official Miniconda3 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 and install dependencies
RUN conda create -n myenv python=3.9 numpy=1.19.5 flask=2.0.2 && \
/opt/conda/envs/myenv/bin/pip install spleeter==2.1.0 autochord==0.1.4 pretty_midi librosa matchering pedalboard scipy==1.7.1
# Expose the port Flask is running on
EXPOSE 5000
# Run app.py in the conda environment
CMD ["/opt/conda/envs/myenv/bin/python", "app.py"]