File size: 726 Bytes
4c1a73f
 
62a76be
4c1a73f
62a76be
 
4c1a73f
 
 
 
 
62a76be
4c1a73f
 
 
62a76be
4c1a73f
62a76be
 
4c1a73f
62a76be
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Use an official Python runtime as a parent image
FROM python:3.9-slim

# Set the working directory in the container
WORKDIR /app

# Install wget and other necessary tools
RUN apt-get update && apt-get install -y wget && rm -rf /var/lib/apt/lists/*

# Copy the current directory contents into the container at /app
COPY . /app

# Download the Llama model
RUN wget https://huggingface.co/Mozilla/Meta-Llama-3.1-8B-Instruct-llamafile/resolve/main/Meta-Llama-3.1-8B-Instruct.Q6_K.llamafile && \
    chmod +x Meta-Llama-3.1-8B-Instruct.Q6_K.llamafile

# Make port 8080 available to the world outside this container
EXPOSE 8080

# Run the Llama model when the container launches
CMD ["./Meta-Llama-3.1-8B-Instruct.Q6_K.llamafile"]