Spaces:
Sleeping
Sleeping
| FROM ubuntu:22.04 | |
| # Evitar prompts interativos | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| # Instalar dependências e Hashcat | |
| RUN apt-get update && apt-get install -y \ | |
| hashcat \ | |
| python3 \ | |
| python3-pip \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Configurar usuário não-root (requisito HF Spaces) | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR /home/user/app | |
| # Copiar requirements primeiro para cache | |
| COPY --chown=user requirements.txt . | |
| RUN pip install --no-cache-dir --user -r requirements.txt | |
| # Copiar aplicação | |
| COPY --chown=user . . | |
| # Expor porta Gradio | |
| EXPOSE 7860 | |
| CMD ["python3", "app.py"] | |