generated from moul/golang-repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile.fast
21 lines (19 loc) · 1.15 KB
/
Dockerfile.fast
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM ipfs/go-ipfs as ipfs
FROM jpauwels/sonic-annotator:v1.5-ubuntu18.04
RUN apt update && apt -y install curl python ca-certificates && rm -rf /var/lib/apt/lists/*
RUN curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl \
&& chmod a+rx /usr/local/bin/youtube-dl
RUN set -xe \
&& curl -k https://aubio.org/bin/vamp-aubio-plugins/0.5.1/vamp-aubio-plugins-0.5.1-x86_64.tar.bz2 -o /tmp/aubio-vamp.tar.bz2 \
&& curl -k https://code.soundsoftware.ac.uk/attachments/download/2625/qm-vamp-plugins-1.8.0-linux64.tar.gz -o /tmp/qm-vamp.tar.gz \
&& mkdir -p /usr/lib/vamp/ \
&& cd /tmp \
&& for file in *-vamp.t*; do tar xf $file; done \
&& mv *-plugins*/*.so /usr/lib/vamp \
&& rm -rf *-plugins*/ *-vamp.t* \
&& ls -la /usr/lib/vamp/*
RUN sonic-annotator --version && youtube-dl --version && sonic-annotator --list
COPY --from=ipfs /usr/local/bin/ipfs /bin/ipfs
WORKDIR /app
ENTRYPOINT ["/bin/sgtm"]
COPY ./sgtm-linux-static /bin/sgtm