mirror of
https://github.com/TaterTotterson/microWakeWord-Trainer-Nvidia-Docker.git
synced 2026-06-13 04:20:19 -06:00
41 lines
992 B
Plaintext
41 lines
992 B
Plaintext
# Base
|
|
FROM ubuntu:24.04
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
# System deps
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
python3.12 python3.12-venv python3.12-dev python3-pip python-is-python3 \
|
|
git wget curl unzip ca-certificates nano less \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& mkdir -p /data
|
|
|
|
# Trainer UI port
|
|
EXPOSE 8789
|
|
|
|
# Script root
|
|
WORKDIR /root/mww-scripts
|
|
|
|
# Bash environment
|
|
COPY --chown=root:root --chmod=0755 .bashrc /root/
|
|
|
|
# Root-level entrypoints
|
|
COPY --chown=root:root --chmod=0755 \
|
|
train_wake_word \
|
|
run.sh \
|
|
trainer_server.py \
|
|
requirements.txt \
|
|
/root/mww-scripts/
|
|
|
|
# CLI folder
|
|
COPY --chown=root:root cli/ /root/mww-scripts/cli/
|
|
|
|
# Make all CLI scripts executable (avoids "Permission denied")
|
|
RUN chmod -R a+x /root/mww-scripts/cli
|
|
|
|
# Static UI for trainer
|
|
COPY --chown=root:root --chmod=0644 static/index.html /root/mww-scripts/static/index.html
|
|
|
|
# trainer server
|
|
CMD ["/bin/bash", "-lc", "/root/mww-scripts/run.sh"]
|