File size: 591 Bytes
2a704e2 ff203cb 247286d 2a704e2 d4cbed4 c0e319b 247286d 2a704e2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# 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"]
|