forked from gerbera/gerbera
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (30 loc) · 1.27 KB
/
Dockerfile
File metadata and controls
37 lines (30 loc) · 1.27 KB
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
FROM ubuntu:18.04
RUN apt-get update &&\
apt-get install -y uuid-dev libexpat1-dev libsqlite3-dev zlib1g-dev\
libmagic-dev libexif-dev libcurl4-openssl-dev libavutil-dev libavcodec-dev \
libavformat-dev libavdevice-dev libavfilter-dev libavresample-dev \
libswscale-dev libswresample-dev libpostproc-dev g++ cmake \
wget autoconf pkg-config libtool xz-utils libmatroska-dev libebml-dev && \
rm -rf /var/lib/{apt,dpkg,cache,log}/
WORKDIR /app
COPY . .
RUN mkdir build &&\
cd build &&\
sh ../scripts/install-pupnp18.sh &&\
sh ../scripts/install-duktape.sh &&\
sh ../scripts/install-taglib111.sh &&\
cmake ../ -DWITH_MAGIC=1 -DWITH_MYSQL=0 -DWITH_CURL=1 -DWITH_JS=1 \
-DWITH_TAGLIB=1 -DWITH_AVCODEC=1 -DWITH_FFMPEGTHUMBNAILER=0 \
-DWITH_EXIF=1 -DWITH_LASTFM=0 -DWITH_SYSTEMD=0 &&\
make -j4 &&\
make install
RUN mkdir -p /root/.config/gerbera &&\
gerbera --create-config > /root/.config/gerbera/config.xml &&\
sed 's/<import hidden-files="no">/<import hidden-files="no">\n\
<autoscan use-inotify="yes">\n\
<directory location="\/root" mode="inotify" level="full" \
recursive="yes" hidden-files="no"\/>\n\
<\/autoscan>/' -i /root/.config/gerbera/config.xml
EXPOSE 49152
EXPOSE 1900
ENTRYPOINT [ "gerbera","-p", "49152" ]