-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
18 lines (16 loc) · 868 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM nvcr.io/nvidia/l4t-base:r32.6.1 AS build
COPY . /build
RUN apt-get update && apt-get -y --autoremove install build-essential git libass-dev cmake
RUN cp /build/jetson-ffmpeg/ffmpeg_nvmpi.patch /build/ffmpeg && cd /build/ffmpeg && git apply ffmpeg_nvmpi.patch && mv /build/jetson_multimedia_api /usr/src
WORKDIR /build/jetson-ffmpeg
RUN mkdir build && cd build && cmake .. && make -j4 && make install && ldconfig
WORKDIR /build/ffmpeg
RUN ./configure --enable-nvmpi --enable-libass && make -j4
FROM nvcr.io/nvidia/l4t-base:r32.6.1
ENV LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH
COPY --from=build /usr/local/lib/libnvmpi.a /usr/lib
COPY --from=build /usr/local/lib/libnvmpi.so.1.0.0 /usr/lib
COPY --from=build /build/ffmpeg/ffmpeg /usr/bin
COPY --from=build /build/ffmpeg/ffprobe /usr/bin
RUN ln /usr/lib/libnvmpi.so.1.0.0 /usr/lib/libnvmpi.so
CMD [ "/bin/bash" ]