itsjerry125/CppCheck-Py
0
1FROM python:3.10-slim-bullseye2 3# Set working directory4WORKDIR /app5 6# Install essential packages (safe and minimal)7RUN apt-get update && apt-get install -y \8 build-essential \9 curl \10 git \11 && rm -rf /var/lib/apt/lists/*12 13# Copy project files14COPY requirements.txt ./15COPY app/ ./app/16 17# Streamlit config directory18ENV HOME=/app19RUN mkdir -p /app/.streamlit20 21# Install Python dependencies22RUN pip install --no-cache-dir -r requirements.txt23 24# Expose Streamlit port25EXPOSE 850126 27# Healthcheck28HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 129 30# Run Streamlit31ENTRYPOINT ["streamlit", "run", "app/app.py", "--server.port=8501", "--server.address=0.0.0.0", "--browser.gatherUsageStats=false"]32 