1
0

Dockerfile 498 B

12345678910111213141516171819202122
  1. # Dockerfile for Streamlit UI
  2. FROM python:3.11-slim
  3. # Install system dependencies
  4. RUN apt-get update && apt-get install -y --no-install-recommends \
  5. build-essential \
  6. default-libmysqlclient-dev \
  7. && rm -rf /var/lib/apt/lists/*
  8. WORKDIR /app
  9. COPY requirements.txt ./
  10. RUN pip install --no-cache-dir -r requirements.txt
  11. # Copy application code
  12. COPY app.py ./
  13. COPY myloginpath.py ./
  14. EXPOSE 8501
  15. CMD ["streamlit", "run", "app.py", "--server.port", "8501", "--server.headless", "true"]