CoolFace
Apppublic

dannybhatt/AI_fast_api

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
Dockerfile43 linesDownload Raw Back to root
1FROM python:3.12.32 3WORKDIR /app4 5# Install system dependencies6RUN apt-get update && apt-get install -y \7    build-essential \8    gcc \9    g++ \10    pkg-config \11    && rm -rf /var/lib/apt/lists/*12 13# Upgrade Python tooling14RUN pip install --upgrade pip setuptools wheel15 16# Optional: configure Git (safe local scope only, avoids permission issues)17# RUN git config user.email "dannybhatt@users.noreply.huggingface.co"18# RUN git config user.name "dannybhatt"19RUN git init && \20    git config user.email "dannybhatt@users.noreply.huggingface.co" && \21    git config user.name "dannybhatt"22 23# Copy requirements and install dependencies24COPY requirements.txt .25 26RUN pip install --default-timeout=100 --retries=5 -r requirements.txt27 28# Copy the rest of the app code29COPY . .30 31# Ensure start.sh is executable32RUN chmod +x start.sh33# RUN chmod +x data34# ENV STREAMLIT_HOME=/app/.streamlit35ENV HOME=/app36RUN mkdir -p data logs .streamlit37RUN chmod -R 777 data logs .streamlit38RUN mkdir -p /app/.streamlit39RUN mkdir -p /app/.streamlit /app/data /app/logs && chmod -R 777 /app40 41# Entry point42CMD ["./start.sh"]43