forked from home-assistant/addons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (32 loc) · 797 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
ARG BUILD_FROM
FROM $BUILD_FROM
# Build libcec for HDMI-CEC
ARG LIBCEC_VERSION
WORKDIR /usr/src
RUN \
apk add --no-cache \
eudev-libs\
p8-platform \
&& apk add --no-cache --virtual .build-dependencies \
build-base \
cmake \
eudev-dev \
git \
p8-platform-dev \
swig \
linux-headers \
&& git clone --depth 1 -b libcec-${LIBCEC_VERSION} \
"https://github.com/Pulse-Eight/libcec" libcec \
&& mkdir -p libcec/build \
&& cd libcec/build \
&& cmake \
-DCMAKE_INSTALL_PREFIX:PATH=/usr/local \
-DHAVE_LINUX_API=1 \
.. \
&& make -j$(nproc) \
&& make install \
&& apk del --no-cache .build-dependencies \
&& rm -rf /usr/src/*
# Copy data
WORKDIR /
COPY rootfs /