File size: 525 Bytes
aad2c5f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM python:3.11

# Update the package lists and install git
RUN apt update && apt install -y git

# Clone the hf-llm-api repository into the /app directory
RUN git clone https://github.com/Niansuh/hf-llm-api.git /app

# Set the working directory to /app
WORKDIR "/app"

# Install Python dependencies from requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

# Expose port 23333 for the application
EXPOSE 23333

# Command to run the application when the container starts
CMD ["python", "-m", "apis.chat_api"]