-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.grpc
48 lines (44 loc) · 1.58 KB
/
Dockerfile.grpc
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
48
# FROM grpc/cxx:1.12.0
FROM ubuntu:latest
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libssl-dev \
libxml2-dev \
\
cmake ninja-build pkg-config clang clang-format build-essential curl \
ccache git \
\
libavcodec-dev libavdevice-dev libavfilter-dev libavformat-dev \
libavutil-dev libswresample-dev libswscale-dev libx264-dev \
libcurl4-openssl-dev libmbedtls-dev libgl1-mesa-dev libjansson-dev \
libluajit-5.1-dev python3-dev libx11-dev libxcb-randr0-dev \
libxcb-shm0-dev libxcb-xinerama0-dev libxcb-composite0-dev \
libxcomposite-dev libxinerama-dev libxcb1-dev libx11-xcb-dev \
libxcb-xfixes0-dev swig libcmocka-dev libxss-dev libglvnd-dev \
libgles2-mesa-dev libwayland-dev \
\
ca-certificates \
\
libasound2-dev libfdk-aac-dev libfontconfig-dev libfreetype6-dev \
libjack-jackd2-dev libpulse-dev libspeexdsp-dev libudev-dev libv4l-dev \
libva-dev libvlc-dev libdrm-dev nlohmann-json3-dev \
libwebsocketpp-dev libasio-dev \
\
vim gdb valgrind net-tools iptables procps tcpdump \
linux-tools-common linux-tools-generic
# Устанавливаем необходимые пакеты, включая CMake
# gRPC
RUN git clone --recurse-submodules -b v1.66.1 --depth 1 --shallow-submodules https://github.com/grpc/grpc
RUN cd grpc \
&& mkdir -p cmake/build \
&& cd cmake/build \
&& cmake \
-DgRPC_INSTALL=ON \
-DgRPC_BUILD_TESTS=OFF \
-DgRPC_SSL_PROVIDER=package \
-DABSL_ENABLE_INSTALL=ON \
-DBUILD_SHARED_LIBS=ON \
../.. \
&& make -j $(nproc) \
&& make install