hassio-addons/mi-scale/Dockerfile
2023-09-15 00:30:23 +08:00

21 lines
611 B
Docker

FROM python:3.8-slim
LABEL io.hass.version="0.1.16" io.hass.type="addon" io.hass.arch="armhf|aarch64|i386|amd64"
WORKDIR /opt/miscale
COPY src /opt/miscale
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 \
bluez \
python3-pip \
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/ /
RUN chmod +x /entrypoint.sh
RUN chmod +x /cmd.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/cmd.sh"]