Spaces:
Sleeping
Sleeping
Delete Dockerfile
Browse files- Dockerfile +0 -28
Dockerfile
DELETED
|
@@ -1,28 +0,0 @@
|
|
| 1 |
-
FROM ollama/ollama:latest
|
| 2 |
-
|
| 3 |
-
# Hugging Face Spaces only exposes port 7860, and always runs the
|
| 4 |
-
# container as a non-root user with no write access outside /tmp and $HOME,
|
| 5 |
-
# so Ollama's model store has to live somewhere writable.
|
| 6 |
-
ENV OLLAMA_HOST=0.0.0.0:7860
|
| 7 |
-
ENV OLLAMA_MODELS=/data/.ollama/models
|
| 8 |
-
ENV HOME=/data
|
| 9 |
-
# Smaller context = faster CPU inference. 2048 is plenty for short voice-
|
| 10 |
-
# assistant exchanges; raise it if you need longer conversation memory.
|
| 11 |
-
ENV OLLAMA_CONTEXT_LENGTH=2048
|
| 12 |
-
|
| 13 |
-
RUN mkdir -p /data/.ollama/models && chmod -R 777 /data
|
| 14 |
-
|
| 15 |
-
# The model to pull on first boot. Override at build time with
|
| 16 |
-
# --build-arg MODEL=llama3.2 if you want a smaller/different one.
|
| 17 |
-
# On the free CPU tier, use a small model or responses will be very slow:
|
| 18 |
-
# llama3.2:1b → fastest, lowest quality
|
| 19 |
-
# llama3.2 → default, still workable on CPU but slower
|
| 20 |
-
ARG MODEL=llama3.2
|
| 21 |
-
ENV OLLAMA_MODEL=${MODEL}
|
| 22 |
-
|
| 23 |
-
COPY start.sh /start.sh
|
| 24 |
-
RUN chmod +x /start.sh
|
| 25 |
-
|
| 26 |
-
EXPOSE 7860
|
| 27 |
-
|
| 28 |
-
ENTRYPOINT ["/start.sh"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|