Spaces:
Sleeping
Sleeping
File size: 815 Bytes
5c3e642 f9da7f4 5c3e642 f9da7f4 5c3e642 f9da7f4 5c3e642 f9da7f4 5c3e642 f9da7f4 5c3e642 f9da7f4 5c3e642 d7518cf f9da7f4 5c3e642 f9da7f4 5c3e642 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# Imagem base do Python
FROM python:3.9-slim
# Evita prompts interativos
ENV DEBIAN_FRONTEND=noninteractive
# Instalar dependências do sistema necessárias para algumas libs (ex: pandas, matplotlib)
RUN apt-get update && apt-get install -y \
build-essential \
libgeos-dev \
&& rm -rf /var/lib/apt/lists/*
# Criar pasta de trabalho
WORKDIR /app
# Copiar requirements.txt e instalar dependências
COPY requirements.txt /app/
RUN pip install --no-cache-dir -r requirements.txt
# Copiar o código e os dados
COPY ./src /app/src
COPY ./Dados /app/Dados
COPY requirements.txt /app/
# Definir diretório de trabalho para rodar o app
WORKDIR /app/src/
# Comando para iniciar o Streamlit no Hugging Face
CMD ["streamlit", "run", "streamlit_app.py", "--server.port", "8501", "--server.address", "0.0.0.0"] |