FROM python:3.9-slim WORKDIR /app # Install dependencies once during the build process RUN pip install flask faster-whisper paho-mqtt requests 'numpy<2' openwakeword tflite-runtime # Pre-download models so they are ready at boot RUN python -c 'import openwakeword; openwakeword.utils.download_models()'