mirror of
https://github.com/mpromonet/v4l2rtspserver
synced 2024-11-17 21:25:40 +00:00
25 lines
1005 B
Docker
25 lines
1005 B
Docker
FROM ubuntu:20.04 as builder
|
|
LABEL maintainer michel.promonet@free.fr
|
|
WORKDIR /v4l2rtspserver
|
|
COPY . /v4l2rtspserver
|
|
|
|
ARG ARCH=arm64
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends ca-certificates xz-utils cmake make pkg-config git wget gcc-aarch64-linux-gnu g++-aarch64-linux-gnu \
|
|
&& cmake -DCMAKE_SYSTEM_PROCESSOR=${ARCH} -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++ -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY -DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ONLY . \
|
|
&& make install \
|
|
&& apt-get clean && rm -rf /var/lib/apt/lists/
|
|
|
|
|
|
FROM arm64v8/ubuntu
|
|
|
|
WORKDIR /usr/local/share/v4l2rtspserver
|
|
COPY --from=builder /usr/local/bin/ /usr/local/bin/
|
|
COPY --from=builder /usr/local/share/v4l2rtspserver/ /usr/local/share/v4l2rtspserver/
|
|
|
|
ENTRYPOINT [ "/usr/local/bin/v4l2rtspserver" ]
|
|
CMD [ "-S" ]
|