SALEETAI commited on
Commit
90dee38
·
verified ·
1 Parent(s): f266ea4

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a lightweight Python image
2
+ FROM python:3.10-slim
3
+
4
+ # Install system dependencies
5
+ RUN apt-get update && apt-get install -y \
6
+ build-essential \
7
+ python3-dev \
8
+ git \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ # Install llama-cpp-python (CPU version) and Gradio
12
+ RUN pip install --no-cache-dir \
13
+ llama-cpp-python \
14
+ gradio \
15
+ huggingface_hub
16
+
17
+ # Set work directory
18
+ WORKDIR /app
19
+
20
+ # Copy your app code
21
+ COPY . .
22
+
23
+ # Start the application
24
+ CMD ["python", "app.py"]