Ollama / Dockerfile1
BinaryONe
Changing to No Data Persistance
1808f99
raw
history blame contribute delete
318 Bytes
FROM ollama/ollama:latest
# Expose your desired port
EXPOSE 7860
# Make Ollama listen on 0.0.0.0:7860 (default listens on 11434)
ENV OLLAMA_HOST=0.0.0.0:7860
RUN mkdir -p /.ollama/ && \
chmod -R 777 /.ollama/
#RUN py --version
# Let the base image default ENTRYPOINT (ollama binary) run "serve"
CMD ["serve"]