-
Notifications
You must be signed in to change notification settings - Fork 61
/
Copy pathDockerfile
33 lines (26 loc) · 894 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
FROM fedora:37
# standard install packages: pip libolm-devel gcc python-devel python3-dbus
# additional packages: libffi-devel libjpeg-devel zlib-devel (required on Raspberry Pi (4b, 32bit, running buster of Raspberry Pi OS))
RUN \
dnf install -y --nodocs \
gcc \
libolm-devel \
libffi-devel \
libjpeg-devel \
pip \
python-devel \
python3-dbus \
zlib-devel \
&& dnf clean all \
&& rm -rf /var/cache/yum/
RUN pip3 install --no-cache wheel
RUN mkdir -vp /app/matrix_commander/
WORKDIR /app/
COPY requirements.txt .
RUN pip3 install --no-cache -r requirements.txt
WORKDIR /app/matrix_commander/
COPY matrix_commander/matrix_commander.py .
COPY matrix_commander/matrix-commander .
COPY matrix_commander/__init__.py .
VOLUME /data
ENTRYPOINT ["/bin/python3", "/app/matrix_commander/matrix-commander" ,"-s", "/data/store", "-c", "/data/credentials.json"]