File size: 564 Bytes
7029d6a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d159693
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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"]