Add Dockerfile

This commit is contained in:
Kacper Donat 2020-05-23 18:41:25 +02:00
parent 6a6e99f8d1
commit d7b63b7403

20
Dockerfile Normal file
View File

@ -0,0 +1,20 @@
FROM continuumio/miniconda:latest
WORKDIR /root
ENV MODEL_DIR=/root/maestro
# packages needed
RUN apt-get update && \
apt-get install -y unzip curl wget vim libsndfile-dev build-essential libasound2-dev libjack-dev portaudio19-dev
# checkpoint
RUN wget https://storage.googleapis.com/magentadata/models/onsets_frames_transcription/maestro_checkpoint.zip && \
unzip maestro_checkpoint.zip && \
mv train maestro
# installation
RUN curl https://raw.githubusercontent.com/tensorflow/magenta/master/magenta/tools/magenta-install.sh > /tmp/magenta-install.sh && \
sed 's/sudo //' -i /tmp/magenta-install.sh && \
bash --login /tmp/magenta-install.sh
RUN echo "conda activate magenta" >> /root/.bashrc