0e084adf8d
build-and-push / build (aarch64, linux/arm64) (push) Has been cancelled
build-and-push / build (amd64, linux/amd64) (push) Has been cancelled
build-and-push / build (armhf, linux/arm/v6) (push) Has been cancelled
build-and-push / build (armv7, linux/arm/v7) (push) Has been cancelled
build-and-push / build (i386, linux/386) (push) Has been cancelled
20 lines
379 B
Docker
20 lines
379 B
Docker
ARG BUILD_FROM
|
|
FROM ${BUILD_FROM}
|
|
|
|
RUN apk add --no-cache python3 py3-pip
|
|
|
|
WORKDIR /app
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir --break-system-packages -r requirements.txt
|
|
|
|
COPY app/ /app/
|
|
COPY run.sh /run.sh
|
|
RUN chmod a+x /run.sh
|
|
|
|
LABEL \
|
|
io.hass.version="0.1.0" \
|
|
io.hass.type="addon" \
|
|
io.hass.arch="armhf|armv7|aarch64|amd64|i386"
|
|
|
|
CMD ["/run.sh"]
|