forked from bmwcarit/python-dlt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (34 loc) · 1.01 KB
/
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
FROM debian:buster as builder
ARG LIBDLT_VERSION=v2.18.4
RUN set -ex \
&& apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y build-essential git cmake libdbus-1-dev cmake-data \
libdbus-1-dev systemd libsystemd-dev wget curl zlib1g-dev
# Install libdlt
RUN set -ex \
&& git clone https://github.com/GENIVI/dlt-daemon \
&& cd /dlt-daemon \
&& git checkout ${LIBDLT_VERSION} \
&& cd /dlt-daemon \
&& cmake CMakeLists.txt \
&& make \
&& make install
FROM debian:buster
# Install libdlt.so
COPY --from=builder /usr/local/lib /usr/local/lib
RUN set -ex \
&& ldconfig
RUN set -ex \
&& apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y python3 python3-pip python2 python2-dev git \
&& pip3 install --no-cache-dir setuptools tox \
&& apt-get clean all \
&& rm -rf \
/var/cache/debconf/* \
/var/lib/apt/lists/* \
/var/log/* \
/tmp/* \
/var/tmp/*
# vim: set ft=dockerfile :