Sole00/AI-Assisted_Data_Modelling_Agent
0
1FROM python:3.11-slim2 3# Create the HF-required user4RUN useradd -m -u 1000 user5USER user6ENV PATH="/home/user/.local/bin:${PATH}"7 8# Set the working directory to the root of your project9WORKDIR /app10 11# Copy everything into /app12COPY --chown=user:user . .13 14# Install dependencies15RUN pip install --no-cache-dir -r requirements.txt16 17# Set Streamlit environment variables18ENV STREAMLIT_SERVER_PORT=786019ENV STREAMLIT_SERVER_ADDRESS=0.0.0.020ENV STREAMLIT_SERVER_ENABLE_XSRF_PROTECTION=false21ENV STREAMLIT_SERVER_ENABLE_CORS=false22 23# THE CRITICAL FIX: Directing Python to the exact path of your file24CMD ["python", "-m", "streamlit", "run", "src/streamlit_app.py"]