homecore-apps/homecore_controller/Dockerfile

14 lines
460 B
Docker

FROM ghcr.io/home-assistant/base:latest
ARG BUILD_VERSION
ARG BUILD_ARCH
LABEL io.hass.version="$BUILD_VERSION" io.hass.type="app" io.hass.arch="$BUILD_ARCH"
RUN apk add --no-cache python3 py3-pip && python3 -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
COPY requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt
COPY app /opt/homecore
COPY run.sh /run.sh
RUN chmod a+x /run.sh
WORKDIR /opt/homecore
CMD ["/run.sh"]