RMSO_INTERNO / Dockerfile
rdsrrr's picture
Update Dockerfile
8f8ce6b verified
Raw
History Blame Contribute Delete
410 Bytes
FROM python:3.11-slim
# Bibliotecas básicas do sistema
RUN apt-get update && apt-get install -y \
libgl1 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Instala as dependências
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copia o projeto
COPY . .
# Expõe a porta
EXPOSE 7860
# COMANDO CORRETO: Roda direto o python sem o flet-cli
CMD ["python", "-u", "main.py"]