23 lines
604 B
Docker
23 lines
604 B
Docker
|
|
# Dockerfile — HA Voice Control + Dashboard voor Synology NAS
|
||
|
|
FROM python:3.12-slim
|
||
|
|
|
||
|
|
WORKDIR /app
|
||
|
|
|
||
|
|
# Systeem dependencies (ffmpeg nodig voor Whisper audio)
|
||
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||
|
|
libsndfile1 \
|
||
|
|
ffmpeg \
|
||
|
|
&& rm -rf /var/lib/apt/lists/*
|
||
|
|
|
||
|
|
# Python dependencies (twee losse stappen = betere caching)
|
||
|
|
COPY requirements.txt requirements-neo4j.txt ./
|
||
|
|
RUN pip install --no-cache-dir -r requirements.txt -r requirements-neo4j.txt
|
||
|
|
|
||
|
|
# Applicatiecode
|
||
|
|
COPY config.py .
|
||
|
|
COPY src/ ./src/
|
||
|
|
COPY static/ ./static/
|
||
|
|
|
||
|
|
EXPOSE 8765
|
||
|
|
CMD ["python", "-m", "src.web_server"]
|