Add Dockerfile
This commit is contained in:
parent
6a6e99f8d1
commit
d7b63b7403
20
Dockerfile
Normal file
20
Dockerfile
Normal 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
|
Loading…
Reference in New Issue
Block a user