forked from home-assistant-libs/python-matter-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.dev
48 lines (40 loc) · 1005 Bytes
/
Dockerfile.dev
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 debian:bullseye
# Set shell
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
WORKDIR /app
RUN \
set -x \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
libuv1 \
openssl \
zlib1g \
libjson-c5 \
python3-venv \
python3-pip \
python3-gi \
python3-gi-cairo \
python3-dbus \
python3-psutil \
unzip \
libcairo2 \
gdb \
git \
&& git clone --depth 1 -b master \
https://github.com/project-chip/connectedhomeip \
&& cp -r connectedhomeip/credentials /app/credentials \
&& mv /app/credentials/production/paa-root-certs/* \
/app/credentials/development/paa-root-certs/ \
&& rm -rf connectedhomeip \
&& apt-get purge -y --auto-remove \
git \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /usr/src/*
COPY . ./
# hadolint ignore=DL3013
RUN \
pip3 install -U pip && \
pip3 install --no-cache-dir .[server]
VOLUME ["/data"]
EXPOSE 5580
ENTRYPOINT ["./docker-entrypoint.sh"]