Spaces:
Sleeping
Sleeping
Commit ·
6eada4c
1
Parent(s): df6c009
Adiciona Dockerfile para Dashboard_Teste_de_Hipoteses_online
Browse files- Dockerfile +29 -0
Dockerfile
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Dockerfile para Dashboard de Teste de Hipóteses Online com Streamlit em Docker
|
| 2 |
+
# syntax=docker/dockerfile:1
|
| 3 |
+
|
| 4 |
+
# Imagem base Python slim
|
| 5 |
+
FROM python:3.10-slim
|
| 6 |
+
|
| 7 |
+
# Variáveis de ambiente
|
| 8 |
+
ENV PYTHONUNBUFFERED=1 \
|
| 9 |
+
PYTHONDONTWRITEBYTECODE=1
|
| 10 |
+
|
| 11 |
+
# Diretório de trabalho
|
| 12 |
+
WORKDIR /app
|
| 13 |
+
|
| 14 |
+
# Copiar e instalar dependências
|
| 15 |
+
COPY requirements.txt .
|
| 16 |
+
RUN pip install --upgrade pip \
|
| 17 |
+
&& pip install --no-cache-dir -r requirements.txt
|
| 18 |
+
|
| 19 |
+
# Copiar recursos (logo e dados) e o código do dashboard
|
| 20 |
+
COPY Logo ./Logo
|
| 21 |
+
COPY Dados ./Dados
|
| 22 |
+
COPY Dashboard_Teste_de_Hipoteses_online.py .
|
| 23 |
+
|
| 24 |
+
# Expor porta do Streamlit
|
| 25 |
+
EXPOSE 8501
|
| 26 |
+
|
| 27 |
+
# Comando para iniciar o aplicativo Streamlit
|
| 28 |
+
CMD ["streamlit", "run", "Dashboard_Teste_de_Hipoteses_online.py", "--server.port=8501", "--server.enableCORS=false"]
|
| 29 |
+
|