Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +0 -15
Dockerfile
CHANGED
@@ -6,34 +6,19 @@ RUN apt-get update && apt-get install -y \
|
|
6 |
curl \
|
7 |
gnupg
|
8 |
|
9 |
-
# Add NVIDIA package repositories
|
10 |
-
RUN curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \
|
11 |
-
&& echo "deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://nvidia.github.io/libnvidia-container/stable/deb/ $(. /etc/os-release; echo $UBUNTU_CODENAME) main" > /etc/apt/sources.list.d/nvidia-container-toolkit.list
|
12 |
-
|
13 |
-
# Install NVIDIA container toolkit (Check for any updated methods or URLs for Ubuntu jammy)
|
14 |
-
RUN apt-get update && apt-get install -y nvidia-container-toolkit || true
|
15 |
-
|
16 |
# Install application
|
17 |
RUN curl https://ollama.ai/install.sh | sh
|
18 |
-
# Below is to fix embedding bug as per
|
19 |
-
# RUN curl -fsSL https://ollama.com/install.sh | sed 's#https://ollama.com/download#https://github.com/jmorganca/ollama/releases/download/v0.1.29#' | sh
|
20 |
-
|
21 |
|
22 |
-
# Create the directory and give appropriate permissions
|
23 |
RUN mkdir -p /.ollama && chmod 777 /.ollama
|
24 |
|
25 |
WORKDIR /.ollama
|
26 |
|
27 |
-
# Copy the entry point script
|
28 |
COPY entrypoint.sh /entrypoint.sh
|
29 |
RUN chmod +x /entrypoint.sh
|
30 |
|
31 |
-
# Set the entry point script as the default command
|
32 |
ENTRYPOINT ["/entrypoint.sh"]
|
33 |
CMD ["ollama", "serve"]
|
34 |
|
35 |
-
# Set the model as an environment variable (this can be overridden)
|
36 |
RUN curl -fsSL https://huggingface.co/johnpaulbin/translator-llm/resolve/main/translator-llama3.1-q4km-2.gguf?download=true -o llama.gguf
|
37 |
|
38 |
-
# Expose the server port
|
39 |
EXPOSE 7860
|
|
|
6 |
curl \
|
7 |
gnupg
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
# Install application
|
10 |
RUN curl https://ollama.ai/install.sh | sh
|
|
|
|
|
|
|
11 |
|
|
|
12 |
RUN mkdir -p /.ollama && chmod 777 /.ollama
|
13 |
|
14 |
WORKDIR /.ollama
|
15 |
|
|
|
16 |
COPY entrypoint.sh /entrypoint.sh
|
17 |
RUN chmod +x /entrypoint.sh
|
18 |
|
|
|
19 |
ENTRYPOINT ["/entrypoint.sh"]
|
20 |
CMD ["ollama", "serve"]
|
21 |
|
|
|
22 |
RUN curl -fsSL https://huggingface.co/johnpaulbin/translator-llm/resolve/main/translator-llama3.1-q4km-2.gguf?download=true -o llama.gguf
|
23 |
|
|
|
24 |
EXPOSE 7860
|