mirror of
https://github.com/mtan93/homeassistant-addons.git
synced 2026-03-08 05:21:51 +00:00
17 lines
582 B
Docker
17 lines
582 B
Docker
ARG BUILD_FROM=ghcr.io/hassio-addons/base-python/amd64:6.0.0
|
|
FROM ${BUILD_FROM}
|
|
|
|
# Add poetry # TODO: Get rid of the overhead
|
|
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
|
|
ENV PATH=$HOME/.poetry/bin/:${PATH}
|
|
RUN poetry config virtualenvs.create false
|
|
|
|
# add source and unpack
|
|
ADD "https://github.com/MaxWinterstein/toogoodtogo-ha-mqtt-bridge/archive/v2.2.3.tar.gz" /src.tar.gz
|
|
RUN mkdir /app && tar xvfz /src.tar.gz -C /app --strip-components=1
|
|
|
|
# install
|
|
WORKDIR /app
|
|
RUN poetry update && poetry install --no-dev
|
|
|
|
ADD rootfs / |