File size: 651 Bytes
a8144f6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5a9e15b
a8144f6
 
 
 
 
 
 
 
 
 
 
 
 
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
# Use the Ubuntu base image
FROM ubuntu

# Install required packages
RUN apt-get update && apt-get install -y \
    curl \
    bash

# Install Ollama
RUN curl -fsSL https://ollama.com/install.sh | sh

# Create the /app directory and set permissions
RUN mkdir /app && chmod 777 /app

# Copy only the necessary files into the container
COPY Modelfile /app/Modelfile
COPY start.sh /app/start.sh

# Set the working directory
WORKDIR /app

# Make sure the start.sh script is executable
RUN chmod +x start.sh

# Set the default command to run the start.sh script
CMD ["/bin/bash", "start.sh"]

# Expose the default port used by the application
EXPOSE 11434