hass-appdaemon/Dockerfile
Ian Fijolek 4af9ffc0f5 Working config
Dockerfile may not work
2024-01-10 16:23:43 -08:00

37 lines
824 B
Docker

FROM python:3.11-alpine
# Environment vars we can configure against
# But these are optional, so we won't define them now
#ENV HA_URL http://hass:8123
#ENV HA_KEY secret_key
#ENV DASH_URL http://hass:5050
#ENV EXTRA_CMD -D DEBUG
# API Port
EXPOSE 5050
# Mountpoints for configuration & certificates
VOLUME /conf
VOLUME /certs
# Install timezone data
RUN apk add --no-cache tzdata \
gcc \
libffi-dev\
openssl-dev\
musl-dev \
curl
# Copy appdaemon into image
WORKDIR /usr/src/app
ENV VERSION=4.0.3
RUN set -o pipefail && \
curl -L https://github.com/home-assistant/appdaemon/archive/${VERSION}.tar.gz | \
tar zx && mv appdaemon-*/* .
RUN pip install --no-cache-dir .
# Start script
RUN chmod +x /usr/src/app/dockerStart.sh
ENTRYPOINT ["./dockerStart.sh"]