Spaces:
Sleeping
Sleeping
File size: 551 Bytes
f2c9d17 f4052bc f2c9d17 0dd59f4 f4052bc f2c9d17 f4052bc f2c9d17 f4052bc f2c9d17 f4052bc 0dd59f4 8f97500 f2c9d17 86e65b9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# Builder stage
FROM ubuntu:latest
# Update packages and install curl and gnupg
RUN apt-get update && apt-get install -y \
curl \
gnupg \
wget
# Install application
RUN curl https://ollama.ai/install.sh | sh
RUN mkdir -p /.ollama && chmod 777 /.ollama
WORKDIR /.ollama
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
RUN wget "https://huggingface.co/johnpaulbin/translator-llm/resolve/main/translator-llama3.1-q4km-2.gguf?download=true" -o llama.gguf
ENTRYPOINT ["/entrypoint.sh"]
CMD ["ollama", "serve"]
EXPOSE 11434 |