Initial commit
This commit is contained in:
32
Dockerfile.dashboard
Normal file
32
Dockerfile.dashboard
Normal file
@@ -0,0 +1,32 @@
|
||||
FROM python:3.11-slim
|
||||
|
||||
# Establecer directorio de trabajo
|
||||
WORKDIR /app
|
||||
|
||||
# Instalar dependencias del sistema
|
||||
RUN apt-get update && apt-get install -y \
|
||||
gcc \
|
||||
g++ \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copiar requirements y dependencias de Python
|
||||
COPY requirements.txt requirements-dashboard.txt ./
|
||||
|
||||
# Instalar dependencias de Python
|
||||
RUN pip install --no-cache-dir -r requirements-dashboard.txt
|
||||
|
||||
# Copiar archivos de la aplicación
|
||||
COPY main.py dashboard.py ./
|
||||
COPY templates/ ./templates/
|
||||
|
||||
# Crear directorios necesarios
|
||||
RUN mkdir -p downloads resumenes_docx
|
||||
|
||||
# Establecer permisos
|
||||
RUN chmod +x dashboard.py
|
||||
|
||||
# Exponer puerto
|
||||
EXPOSE 5000
|
||||
|
||||
# Comando para ejecutar el dashboard
|
||||
CMD ["python", "dashboard.py"]
|
||||
Reference in New Issue
Block a user