File size: 549 Bytes
98e5ec7
184a427
0e876f8
184a427
 
0e876f8
98e5ec7
 
 
 
94efce7
98e5ec7
 
94efce7
98e5ec7
 
 
 
5d12bd2
0e876f8
98e5ec7
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Use an official Python runtime as a parent image
FROM python:3.9-slim

# Set the working directory in the container
WORKDIR /usr/src/app

# Install curl
RUN apt-get update && \
    apt-get install -y curl && \
    rm -rf /var/lib/apt/lists/*

# Download and execute the installation script
RUN curl -fsSL https://ollama.com/install.sh | sh

# Copy the local directory contents into the container at /usr/src/app
COPY . .

# Make sure main.py is executable
RUN chmod +x main.py

# Run main.py when the container launches
CMD ["python", "./main.py"]