2020-07-01 02:18:55 +08:00
|
|
|
FROM python:3.8-slim
|
2020-11-26 18:45:35 +08:00
|
|
|
LABEL io.hass.version="0.1.16" io.hass.type="addon" io.hass.arch="armhf|aarch64|i386|amd64"
|
2020-07-01 02:18:55 +08:00
|
|
|
WORKDIR /opt/miscale
|
|
|
|
COPY src /opt/miscale
|
|
|
|
|
2023-09-15 00:30:23 +08:00
|
|
|
RUN sed -i 's/http:\/\/deb.debian.org/https:\/\/mirrors.cloud.tencent.com/g' /etc/apt/sources.list.d/debian.sources \
|
|
|
|
&& apt-get update && apt-get install -y \
|
2020-07-01 02:18:55 +08:00
|
|
|
bluez \
|
2023-09-15 00:30:23 +08:00
|
|
|
python3-pip \
|
2020-07-01 02:18:55 +08:00
|
|
|
libglib2.0-dev && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
|
|
|
|
# Copy in docker scripts to root of container...
|
|
|
|
COPY dockerscripts/ /
|
|
|
|
|
2020-11-24 20:09:34 +08:00
|
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
RUN chmod +x /cmd.sh
|
2020-07-01 02:18:55 +08:00
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
CMD ["/cmd.sh"]
|