LOT 1 - Optimizare script build -Instalare mono comanda
This commit is contained in:
parent
5380c3fc63
commit
42ff22bf85
127 changed files with 16163 additions and 532 deletions
42
ai_platform/modules/domain_check/dashboard/Dockerfile
Normal file
42
ai_platform/modules/domain_check/dashboard/Dockerfile
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
# Streamlit Dashboard Dockerfile
|
||||
|
||||
FROM python:3.10-slim
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Install system dependencies
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
curl \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copy requirements
|
||||
COPY requirements.txt .
|
||||
|
||||
# Install Python dependencies
|
||||
RUN pip install --no-cache-dir --upgrade pip && \
|
||||
pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Create non-root user
|
||||
RUN useradd -m -u 1000 streamlit && \
|
||||
chown -R streamlit:streamlit /app
|
||||
|
||||
# Copy application code
|
||||
COPY --chown=streamlit:streamlit . /app/
|
||||
|
||||
# Create Streamlit config directory
|
||||
RUN mkdir -p /home/streamlit/.streamlit && \
|
||||
chown -R streamlit:streamlit /home/streamlit
|
||||
|
||||
# Switch to non-root user
|
||||
USER streamlit
|
||||
|
||||
# Expose Streamlit port
|
||||
EXPOSE 8501
|
||||
|
||||
# Health check
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=20s --retries=3 \
|
||||
CMD curl -f http://localhost:8501/_stcore/health || exit 1
|
||||
|
||||
# Run Streamlit
|
||||
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.headless=true", "--browser.gatherUsageStats=false"]
|
||||
26
ai_platform/modules/domain_check/dashboard/requirements.txt
Normal file
26
ai_platform/modules/domain_check/dashboard/requirements.txt
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# Streamlit Framework
|
||||
streamlit==1.29.0
|
||||
|
||||
# HTTP Requests
|
||||
requests==2.31.0
|
||||
httpx==0.25.2
|
||||
|
||||
# Data Processing & Visualization
|
||||
pandas==2.1.4
|
||||
numpy==1.26.2
|
||||
plotly==5.18.0
|
||||
altair==5.2.0
|
||||
|
||||
# Date & Time
|
||||
python-dateutil==2.8.2
|
||||
pytz==2023.3
|
||||
|
||||
# Utilities
|
||||
python-dotenv==1.0.0
|
||||
validators==0.22.0
|
||||
|
||||
# Caching
|
||||
streamlit-autorefresh==1.0.1
|
||||
|
||||
# Formatting
|
||||
humanize==4.9.0
|
||||
Loading…
Add table
Add a link
Reference in a new issue