Files
ha-addon-energa-meter-gh-fork/src/Dockerfile

19 lines
361 B
Docker
Raw Normal View History

2023-10-22 01:55:11 +02:00
ARG BUILD_FROM
FROM $BUILD_FROM
RUN apk add --no-cache python3
RUN apk add --update py3-pip
2023-11-02 22:49:28 +01:00
2023-10-22 01:55:11 +02:00
# Copy data for add-on
COPY run.sh /
COPY run.py /
2023-10-22 01:55:11 +02:00
COPY requirements.txt /
COPY main.py /
COPY api.py /
COPY moj_licznik.py /
COPY log_config.py /
COPY database_empty.sqlite /database.sqlite
2023-10-22 01:55:11 +02:00
RUN chmod a+x /run.sh
RUN pip install -r requirements.txt
CMD [ "/run.sh" ]