2020-07-01 02:18:55 +08:00
|
|
|
FROM python:3.8-slim
|
2020-11-26 17:34:38 +08:00
|
|
|
LABEL io.hass.version="0.1.15" 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
|
|
|
|
|
2020-11-26 17:38:56 +08:00
|
|
|
RUN apt-get update && apt-get install -y \
|
2020-07-01 02:18:55 +08:00
|
|
|
bluez \
|
|
|
|
python-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/ /
|
|
|
|
|
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"]
|