droitarpr / Dockerfile
ramedde's picture
Update Dockerfile
c32a5e4 verified
Raw
History Blame Contribute Delete
753 Bytes
FROM python:3.11-slim
RUN apt-get update && apt-get install -y \
git \
git-lfs \
ffmpeg \
libsm6 \
libxext6 \
cmake \
rsync \
libgl1 \
&& rm -rf /var/lib/apt/lists/* \
&& git lfs install
RUN useradd -m -u 1000 user
WORKDIR /app
ENV GRADIO_SERVER_NAME="0.0.0.0"
ENV GRADIO_SERVER_PORT="7860"
# عنوان خادم LLM البعيد — يمكن تجاوزه في إعدادات الـ Space
ENV LLM_BASE_URL="https://ramedde-gemma4cpu.hf.space"
ENV LLM_MODEL_NAME="gemma-4-e2b-q4"
ENV LLM_TIMEOUT="120"
RUN pip install --no-cache-dir --upgrade pip
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY --chown=user:user . /app
USER user
EXPOSE 7860
CMD ["python", "app.py"]