File size: 542 Bytes
655ef2b
 
a9d0e1b
 
655ef2b
a9d0e1b
67dad89
a9d0e1b
 
655ef2b
a9d0e1b
 
655ef2b
a9d0e1b
655ef2b
 
a9d0e1b
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM python:3.10-slim

# Install minimum system dependencies for C++ execution templates
RUN apt-get update && apt-get install -y git libgomp1

# Install runtime python dependencies
RUN pip install --upgrade pip
RUN pip install llama-cpp-python --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
RUN pip install fastapi uvicorn huggingface_hub

# Copy the application script into the container workspace
COPY app.py .

# Expose the internal network port
EXPOSE 7860

# Launch the secure FastAPI app
CMD ["python3", "app.py"]