27 lines
529 B
Docker
27 lines
529 B
Docker
FROM python:3.12-slim
|
|
|
|
LABEL \
|
|
io.hass.version="0.5.0" \
|
|
io.hass.type="app" \
|
|
io.hass.arch="aarch64,amd64,armv7"
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
PYTHONUNBUFFERED=1
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
fonts-dejavu-core \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt /app/requirements.txt
|
|
RUN pip install --no-cache-dir -r /app/requirements.txt
|
|
|
|
COPY run.sh /app/run.sh
|
|
COPY server.py /app/server.py
|
|
|
|
RUN chmod +x /app/run.sh
|
|
|
|
CMD ["/app/run.sh"]
|