forked from linuxserver/docker-bazarr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
70 lines (58 loc) · 1.66 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
FROM linuxserver/bazarr
# add local files
COPY root/ /
RUN apk add --no-cache alsa-lib-dev \
automake \
autoconf \
bison \
build-base \
curl \
git \
libtool \
python3-dev \
swig \
tar \
wget \
xz && \
python3 -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
pip3 install --upgrade pip setuptools && \
rm -r /root/.cache
WORKDIR /build
RUN wget https://sourceforge.net/projects/cmusphinx/files/sphinxbase/5prealpha/sphinxbase-5prealpha.tar.gz/download -O sphinxbase.tar.gz \
&& tar -xzvf sphinxbase.tar.gz \
&& cd /build/sphinxbase-5prealpha \
&& ./configure --enable-fixed \
&& make \
&& make install
RUN wget https://sourceforge.net/projects/cmusphinx/files/pocketsphinx/5prealpha/pocketsphinx-5prealpha.tar.gz/download -O pocketsphinx.tar.gz \
&& tar -xzvf pocketsphinx.tar.gz \
&& cd /build/pocketsphinx-5prealpha \
&& ./configure \
&& make \
&& make install
ENV FFMPEGVER https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz
RUN mkdir /build/ffmpeg
RUN cd /build \
&& wget "$FFMPEGVER" \
&& tar xf ffmpeg-release-amd64-static.tar.xz --directory ffmpeg/
ENV FFMPEG_DIR /build/ffmpeg
ENV SPHINXBASE_DIR /build/sphinxbase-5prealpha
ENV POCKETSPHINX_DIR /build/pocketsphinx-5prealpha
ENV USE_PKG_CONFIG no
RUN apk add --no-cache \
libffi-dev \
openssl-dev \
libgcc \
ffmpeg-dev \
py3-pybind11-dev
RUN git clone -b '0.15' https://github.com/sc0ty/subsync.git /app/subsync
WORKDIR /
COPY app/ /app/
WORKDIR /app/subsync
RUN pip3 install -r /app/subsync/requirements.txt \
&& pip3 install .
#COPY --from=builder /app .
# ports and volumes
EXPOSE 6767
VOLUME /config /data