# Use the official Ollama image FROM ollama/ollama:latest # Expose the default port Hugging Face uses EXPOSE 7860 ENV OLLAMA_HOST=0.0.0.0:7860 # Install wget (needed to download your model) RUN apt-get update && apt-get install -y wget # Set up the working directory WORKDIR /app # Copy the startup script into the container COPY run.sh /app/run.sh RUN chmod +x /app/run.sh # ── THE FIX ── # مسح الإعداد الافتراضي لـ Ollama وتشغيل السكربت الخاص بنا مباشرة ENTRYPOINT [] CMD ["/bin/bash", "/app/run.sh"]