Spaces:
Configuration error
Configuration error
Update Dockerfile
Browse files- Dockerfile +4 -7
Dockerfile
CHANGED
@@ -4,19 +4,16 @@ FROM python:3.8-slim
|
|
4 |
# Set the working directory inside the container
|
5 |
WORKDIR /app
|
6 |
|
7 |
-
# Install system dependencies and
|
8 |
RUN apt-get update && apt-get install -y \
|
9 |
curl \
|
10 |
&& pip install --upgrade pip
|
11 |
|
12 |
-
# Install Ollama
|
13 |
RUN curl -sSL https://ollama.com/install.sh | bash
|
14 |
|
15 |
-
# Pull the Llama 3.2 model from Ollama
|
16 |
-
RUN ollama pull llama-3.2
|
17 |
-
|
18 |
# Expose the port for the model server (assuming default port 5000)
|
19 |
EXPOSE 5000
|
20 |
|
21 |
-
#
|
22 |
-
CMD
|
|
|
4 |
# Set the working directory inside the container
|
5 |
WORKDIR /app
|
6 |
|
7 |
+
# Install system dependencies, curl, and any other dependencies
|
8 |
RUN apt-get update && apt-get install -y \
|
9 |
curl \
|
10 |
&& pip install --upgrade pip
|
11 |
|
12 |
+
# Install Ollama
|
13 |
RUN curl -sSL https://ollama.com/install.sh | bash
|
14 |
|
|
|
|
|
|
|
15 |
# Expose the port for the model server (assuming default port 5000)
|
16 |
EXPOSE 5000
|
17 |
|
18 |
+
# Pull the Llama 3.2 model - this will happen when the container starts
|
19 |
+
CMD /bin/bash -c "ollama pull llama-3.2 && ollama serve --model llama-3.2 --port 5000"
|