forked from matter-js/python-matter-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (28 loc) · 714 Bytes
/
Dockerfile
File metadata and controls
35 lines (28 loc) · 714 Bytes
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
FROM python:3.11-slim-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 \
zlib1g \
libjson-c5 \
libnl-3-200 \
libnl-route-3-200 \
unzip \
gdb \
iputils-ping \
iproute2 \
&& apt-get purge -y --auto-remove \
&& rm -rf \
/var/lib/apt/lists/* \
/usr/src/*
ARG PYTHON_MATTER_SERVER
# hadolint ignore=DL3013
RUN \
pip3 install --no-cache-dir "python-matter-server[server]==${PYTHON_MATTER_SERVER}"
VOLUME ["/data"]
EXPOSE 5580
ENTRYPOINT ["matter-server", "--storage-path", "/data"]