-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (19 loc) · 1.08 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM python:3.7.13-slim
ARG WORKDIR=/generating-piano-music-with-transformer
WORKDIR ${WORKDIR}
COPY . ${WORKDIR}
RUN apt-get update -y
RUN apt-get install curl fluidsynth build-essential libsndfile1 libasound2-dev libjack-dev -y
RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
RUN apt-get update -y
RUN apt-get install google-cloud-sdk -y
RUN mkdir ${WORKDIR}/content
RUN mkdir ${WORKDIR}/checkpoints
RUN gsutil -q -m cp -r gs://magentadata/models/music_transformer/primers/* ${WORKDIR}/content/
RUN gsutil -q -m cp gs://magentadata/soundfonts/Yamaha-C5-Salamander-JNv5.1.sf2 ${WORKDIR}/content/
RUN gsutil -q -m cp -r gs://magentadata/models/music_transformer/checkpoints/* ${WORKDIR}/checkpoints
RUN pip install --upgrade pip
RUN pip install poetry
RUN poetry export --without-hashes --output requirements.txt
RUN pip install -r requirements.txt