FROM python:3.11-slim WORKDIR /app RUN apt-get update && apt-get install -y git RUN useradd -m -u 1000 user # Switch to root to change permissions USER root COPY --chown=user ./requirements.txt requirements.txt RUN pip install --no-cache-dir --upgrade -r requirements.txt RUN pip install --no-cache-dir --no-deps gradio_huggingfacehub_search COPY --chown=user . /app EXPOSE 7860 ENV GRADIO_SERVER_NAME="0.0.0.0" CMD ["python", "app.py"]