Team Ai
Apppublic

genieprotech/development

sourceHugging Faceupdated 8mo agoView on Hugging Face
0likes
Dockerfile29 linesDownload Raw Back to root
1FROM python:3.9-slim2 3WORKDIR /app4 5# Install system dependencies6RUN apt-get update && apt-get install -y \7    gcc \8    g++ \9    && rm -rf /var/lib/apt/lists/*10 11# Copy requirements12COPY requirements.txt .13 14# Install Python packages15RUN pip install --no-cache-dir --upgrade pip && \16    pip install --no-cache-dir -r requirements.txt17 18# Copy app19COPY app.py .20 21# Create non-root user22RUN useradd -m -u 1000 streamlit && \23    chown -R streamlit:streamlit /app24 25USER streamlit26 27EXPOSE 850128 29CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]