Files
Home-Assistant-Addons/meter_reader/Dockerfile
T
2020-04-02 17:06:22 -04:00

23 lines
355 B
Docker

ARG BUILD_FROM
FROM $BUILD_FROM
# Add env
ENV LANG C.UTF-8
RUN apk add --no-cache curl
RUN apk add --no-cache python3
RUN apk add --no-cache nano
# install .py script dependency
RUN pip3 install boto3
RUN pip3 install requests
RUN pip3 install paho-mqtt
# Copy data for add-on
COPY ocr_aws.py /
COPY run.sh /
RUN chmod a+x /run.sh
CMD [ "/run.sh" ]