-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
56 lines (43 loc) · 996 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
46
47
48
49
50
51
52
53
54
55
56
FROM ubuntu:bionic as builder
ENV GIT_SRC https://github.com/plan44/vdcd.git
ENV BRANCH master
ENV DSROOT /app
RUN apt update && apt install -y \
git \
automake \
libtool \
autoconf \
g++ \
make \
libjson-c-dev \
libsqlite3-dev \
protobuf-c-compiler \
libprotobuf-c-dev \
libboost-dev \
libi2c-dev \
libssl-dev \
libavahi-core-dev \
libavahi-client-dev
RUN git clone ${GIT_SRC} ${DSROOR}/vdcd
RUN cd ${DSROOR}/vdcd && \
git checkout ${BRANCH} && \
git submodule init && \
git submodule update
RUN cd ${DSROOR}/vdcd && \
autoreconf -i && \
./configure && \
make clean && make all
FROM ubuntu:bionic
RUN apt update && apt install -y \
git \
libjson-c-dev \
libsqlite3-dev \
protobuf-c-compiler \
libprotobuf-c-dev \
libboost-dev \
libi2c-dev \
libssl-dev \
libavahi-core-dev \
libavahi-client-dev
COPY --from=builder ${DSROOR}/vdcd/vdcd /bin
CMD ["/bin/vdcd"]