12 lines
428 B
Docker
12 lines
428 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
|
|
WORKDIR /opt/homecore
|
|
CMD ["python", "main.py"]
|