Mobile-Agent / Dockerfile
Sabithulla's picture
Switch to local Qwen2.5-1.5B-Instruct model via Transformers (no API calls)
c35835c
raw
history blame contribute delete
349 Bytes
FROM python:3.11-slim
RUN useradd -m -u 1000 user
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Writable cache for model downloads
RUN mkdir -p /app/.cache && chown -R user:user /app
ENV HF_HOME=/app/.cache
ENV TRANSFORMERS_CACHE=/app/.cache
USER user
EXPOSE 7860
CMD ["python", "app.py"]