Spaces:
Sleeping
Sleeping
# 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 | |