File size: 621 Bytes
f2c9d17
 
f4052bc
f2c9d17
 
 
0dd59f4
 
f4052bc
b15850c
 
f2c9d17
 
f4052bc
f2c9d17
f4052bc
ae96039
 
f2c9d17
 
 
 
f4052bc
9268d4d
8f97500
e8cac12
 
f2c9d17
 
 
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
26
27
28
29
30
31
# Builder stage
FROM ubuntu:latest

# Update packages and install curl and gnupg
RUN apt-get update && apt-get install -y \
    curl \
    gnupg \
    wget

ENV OLLAMA_HOST=0.0.0.0

# Install application
RUN curl https://ollama.ai/install.sh | sh

RUN mkdir -p /.ollama && chmod 777 /.ollama

COPY ./Modelfile /.ollama/Modelfile

WORKDIR /.ollama

COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

RUN curl -fsSL "https://huggingface.co/johnpaulbin/translator-llm/resolve/main/translator-llama3.1-q4km-2.gguf?download=true" -o llama.gguf

EXPOSE 11434

ENTRYPOINT ["/entrypoint.sh"]
CMD ["ollama", "serve"]