mirror of
https://github.com/mtan93/homeassistant-addons.git
synced 2026-03-08 05:21:51 +00:00
* [toogoodtogo] Update base image * Update config.yaml * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update and rename build.yaml to build.json --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
19 lines
635 B
Docker
19 lines
635 B
Docker
ARG BUILD_FROM=ghcr.io/hassio-addons/base-python/amd64:11.0.6
|
|
FROM ${BUILD_FROM}
|
|
|
|
# add source and unpack
|
|
ADD "https://github.com/MaxWinterstein/toogoodtogo-ha-mqtt-bridge/archive/refs/tags/v2.5.1.tar.gz" /src.tar.gz
|
|
RUN mkdir /app && tar xvfz /src.tar.gz -C /app --strip-components=1
|
|
|
|
# install
|
|
WORKDIR /app
|
|
RUN pip install -r requirements.txt
|
|
RUN python setup.py install
|
|
|
|
ADD rootfs /
|
|
|
|
# Corrects permissions for s6 v3
|
|
RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \
|
|
if [ -d /etc/services.d ]; then chmod -R 755 /etc/services.d; fi && \
|
|
if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi
|