Download Guardians/HW-Guardian/Dockerfile from vost/pub-scripts: direct link, hf CLI and curl.
- Browser
- Download file 426 Bytes
-
https://huggingface.co/vost/pub-scripts/resolve/main/Guardians/HW-Guardian/Dockerfile
- Command line
-
hf download hf://vost/pub-scripts/Guardians/HW-Guardian/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/vost/pub-scripts/resolve/main/Guardians/HW-Guardian/Dockerfile
426 Bytes
| # HW-Guardian/Dockerfile | |
| FROM python:3.12-slim | |
| # Instala dependências de sistema para o psutil e ferramentas de monitoramento | |
| RUN apt-get update && apt-get install -y \ | |
| gcc \ | |
| python3-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN pip install --no-cache-dir psutil | |
| WORKDIR /app | |
| COPY guardian_logic.py . | |
| # O script roda como root para ter acesso aos sensores no /sys | |
| CMD ["python", "guardian_logic.py"] |