File size: 501 Bytes
4ff470f
 
21094b9
4ff470f
 
 
 
21094b9
 
a4adeba
21094b9
4ff470f
04611e9
4ff470f
21094b9
04611e9
a4adeba
4ff470f
 
84a1c2d
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM ollama/ollama:latest

# Force Hugging Face's required port
ENV OLLAMA_HOST=0.0.0.0:7860

WORKDIR /app

# Install Python 3 so we can run your build script
RUN apt-get update && apt-get install -y python3 && rm -rf /var/lib/apt/lists/*

# Copy your Modelfile and the Python build script
COPY Tools.modelfile /app/Tools.modelfile
COPY build_tool.py /app/build_tool.py

# RUN THE SCRIPT: This bakes the 4GB model permanently into the image
RUN python3 /app/build_tool.py

EXPOSE 7860


#CMD ["serve"]