-
Notifications
You must be signed in to change notification settings - Fork 30
/
Dockerfile
45 lines (37 loc) · 825 Bytes
/
Dockerfile
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
FROM debian:11-slim
ARG DEBIAN_FRONTEND=noninteractive
RUN \
apt-get update && \
apt-get install -y \
bison \
build-essential \
cmake \
flex \
git \
protobuf-compiler \
libgnutls28-dev \
libarchive-dev \
libprotobuf-dev \
libprotoc-dev \
liblzma-dev \
zlib1g-dev \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/
COPY . /src
WORKDIR /src
RUN git submodule init && \
git submodule update && \
mkdir build && \
cd build && \
CC=gcc CXX=g++ cmake -DCMAKE_INSTALL_PREFIX=/usr .. && \
DESTDIR=build-root make install
FROM debian:11-slim
ARG DEBIAN_FRONTEND=noninteractive
RUN \
apt-get update && \
apt-get install -y libprotobuf23 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/
COPY --from=0 /src/build/build-root/ /
EXPOSE 6969