HFLLMAPI / Dockerfile
Niansuh's picture
Create Dockerfile
aad2c5f verified
raw
history blame
525 Bytes
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"]