-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathDockerfile
executable file
·47 lines (35 loc) · 1.14 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
FROM ubuntu:18.04
ENV HOME "/home"
RUN apt-get update && \
apt-get install -y \
git && \
rm -rf /var/lib/apt/lists/*
###############################################################################
#
# mv-extractor library (legacy version)
#
###############################################################################
# Build h264-videocap from source
RUN cd $HOME && \
git clone -b v0.0.0 https://github.com/LukasBommes/mv-extractor.git video_cap && \
cd video_cap && \
chmod +x install.sh && \
./install.sh
# Set environment variables
ENV PATH "$PATH:$HOME/bin"
ENV PKG_CONFIG_PATH "$PKG_CONFIG_PATH:$HOME/ffmpeg_build/lib/pkgconfig"
RUN cd $HOME/video_cap && \
python3 setup.py install
###############################################################################
#
# Python stream-sync module
#
###############################################################################
WORKDIR $HOME/stream_sync
COPY setup.py $HOME/stream_sync
COPY src $HOME/stream_sync/src/
# Install stream_sync Python module
RUN cd /home/stream_sync && \
python3 setup.py install
WORKDIR $HOME
CMD ["sh", "-c", "tail -f /dev/null"]