srivatsavdamaraju commited on
Commit
18de007
·
verified ·
1 Parent(s): 85aefd6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -15
Dockerfile CHANGED
@@ -1,15 +1,22 @@
1
- # Use a base image that supports systemd, for example, Ubuntu
2
- FROM ubuntu:20.04
3
-
4
- # Install necessary packages
5
- RUN apt-get update && \
6
- apt-get install -y shellinabox && \
7
- apt-get install -y systemd && \
8
- apt-get clean && \
9
- rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
10
- RUN echo 'root:root' | chpasswd
11
- # Expose the web-based terminal port
12
- EXPOSE 4200
13
-
14
- # Start shellinabox
15
- CMD ["/usr/bin/shellinaboxd", "-t", "-s", "/:LOGIN"]
 
 
 
 
 
 
 
 
1
+ # Use an official Python base image
2
+ FROM python:3.8-slim
3
+
4
+ # Set the working directory inside the container
5
+ WORKDIR /app
6
+
7
+ # Install system dependencies and curl for Ollama installation
8
+ RUN apt-get update && apt-get install -y \
9
+ curl \
10
+ && pip install --upgrade pip
11
+
12
+ # Install Ollama using the provided script
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
+ # Command to start the Ollama server with the llama-3.2 model
22
+ CMD ["ollama", "serve", "--model", "llama-3.2", "--port", "5000"]