rockerritesh commited on
Commit
41d0588
·
verified ·
1 Parent(s): f496bb9

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +30 -0
Dockerfile ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ # Install system dependencies
4
+ RUN apt-get update && apt-get install -y \
5
+ sudo \
6
+ curl \
7
+ pciutils \
8
+ lshw \
9
+ && apt-get clean \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ # Install Ollama
13
+ RUN curl -fsSL https://ollama.com/install.sh | sh
14
+
15
+ # Install Python dependencies
16
+ COPY requirements.txt /app/requirements.txt
17
+ WORKDIR /app
18
+ RUN pip install --no-cache-dir -r requirements.txt
19
+
20
+ # Copy application code
21
+ COPY . /app
22
+
23
+ # Pull necessary model
24
+ RUN ollama pull snowflake-arctic-embed2
25
+
26
+ # Expose port for Gradio app
27
+ EXPOSE 7860
28
+
29
+ # Command to run the app
30
+ CMD ["python", "app.py"]