Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RaspberryNode
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
簡碩辰
RaspberryNode
Commits
e0308e48
Commit
e0308e48
authored
Sep 26, 2019
by
簡碩辰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Dockerfile
parent
9a2434d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
28 deletions
+22
-28
Dockerfile
dvr/ffmpeg/Dockerfile
+22
-28
No files found.
dvr/ffmpeg/Dockerfile
View file @
e0308e48
FROM
raspbian/jessie
# 更新系統套件清單
RUN
apt-get update
RUN
apt-get
install
-y
git make build-essential pkg-config python3-dev python3-pip
RUN
rm
-r
/var/lib/apt/lists/
*
RUN
pip3
install
--upgrade
pip
RUN
pip3
install
pexpect
# 安裝編譯用套件
RUN
apt-get
install
-y
git pkg-config build-essential make
# 下載 h264 套件
RUN
git clone git://git.videolan.org/x264 /usr/src/x264
WORKDIR
/usr/src/x264
RUN
./configure
--host
=
arm-unknown-linux-gnueabi
--enable-static
--disable-opencl
# 設定 h264 編譯參數
RUN
/usr/src/x264/configure
--host
=
arm-unknown-linux-gnueabi
--enable-static
--disable-opencl
# 編譯 h264
RUN
make
# 安裝 h264
RUN
make
install
# 下載 ffmpeg 套件
RUN
git clone git://source.ffmpeg.org/ffmpeg.git /usr/src/ffmpeg
WORKDIR
/usr/src/ffmpeg
RUN
./configure
--arch
=
armel
--target-os
=
linux
--enable-gpl
--enable-libx264
--enable-nonfree
# 設定 ffmpeg 編譯參數
RUN
/usr/src/ffmpeg/configure
--arch
=
armel
--target-os
=
linux
--enable-gpl
--enable-libx264
--enable-nonfree
# 編譯 ffmpeg
RUN
make
# 安裝 ffmpeg
RUN
make
install
# 安裝 python3 套件
RUN
apt-get
install
-y
python3-dev python3-pip
# 更新 python3 套件
RUN
pip3
install
--upgrade
pip
# 安裝 mqtt 套件
RUN
pip3
install
paho-mqtt
ENV
TZ=Asia/Taipei
# 移除系統套件清單
RUN
rm
-r
/var/lib/apt/lists/
*
# 複製拋轉程式
COPY
run.py run.py
# 執行拋轉程式
CMD
python3 run.py
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment