Commit 97fce3bb authored by 簡碩辰's avatar 簡碩辰

Update Dockerfile

parent 3600d495
...@@ -5,16 +5,20 @@ RUN apt-get update ...@@ -5,16 +5,20 @@ RUN apt-get update
RUN apt-get install -y git pkg-config build-essential make RUN apt-get install -y git pkg-config build-essential make
# 下載 h264 套件 # 下載 h264 套件
RUN git clone git://git.videolan.org/x264 /usr/src/x264 RUN git clone git://git.videolan.org/x264 /usr/src/x264
# 移動至 ffmpeg 套件資料夾
WORKDIR /usr/src/x264
# 設定 h264 編譯參數 # 設定 h264 編譯參數
RUN /usr/src/x264/configure --host=arm-unknown-linux-gnueabi --enable-static --disable-opencl RUN ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-opencl
# 編譯 h264 # 編譯 h264
RUN make RUN make
# 安裝 h264 # 安裝 h264
RUN make install RUN make install
# 下載 ffmpeg 套件 # 下載 ffmpeg 套件
RUN git clone git://source.ffmpeg.org/ffmpeg.git /usr/src/ffmpeg RUN git clone git://source.ffmpeg.org/ffmpeg.git /usr/src/ffmpeg
# 移動至 ffmpeg 套件資料夾
WORKDIR /usr/src/ffmpeg
# 設定 ffmpeg 編譯參數 # 設定 ffmpeg 編譯參數
RUN /usr/src/ffmpeg/configure --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree RUN ./configure --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree
# 編譯 ffmpeg # 編譯 ffmpeg
RUN make RUN make
# 安裝 ffmpeg # 安裝 ffmpeg
...@@ -27,6 +31,8 @@ RUN pip3 install --upgrade pip ...@@ -27,6 +31,8 @@ RUN pip3 install --upgrade pip
RUN pip3 install paho-mqtt RUN pip3 install paho-mqtt
# 移除系統套件清單 # 移除系統套件清單
RUN rm -r /var/lib/apt/lists/* RUN rm -r /var/lib/apt/lists/*
# 移動至使用者資料夾
WORKDIR ~
# 複製拋轉程式 # 複製拋轉程式
COPY run.py run.py COPY run.py run.py
# 執行拋轉程式 # 執行拋轉程式
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment