Initial commit of Simple Home Assistant Addon with web interface

This commit is contained in:
Manu
2025-06-01 12:04:22 +02:00
commit 3d987c3eb6
12 changed files with 660 additions and 0 deletions

32
Dockerfile Normal file
View File

@ -0,0 +1,32 @@
FROM homeassistant/amd64-base:latest
# Install necessary packages
RUN apk add --no-cache \
python3 \
python3-dev \
build-base \
git
# Set working directory
WORKDIR /app
# Copy addon files
COPY . /app
# Install Python dependencies
RUN pip3 install --no-cache-dir \
homeassistant \
aiohttp \
aiohttp_cors
# Create web directory if it doesn't exist
RUN mkdir -p /app/web
# Create startup script
RUN echo "#!/bin/sh\npython3 /app/main.py" > /startup.sh && chmod +x /startup.sh
# Expose the web interface port
EXPOSE 8099
# Start the addon
CMD ["/startup.sh"]