Al-Alcoba-Inciarte commited on
Commit
ea32f3a
Β·
verified Β·
1 Parent(s): f8b57a3

Create dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +18 -0
dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Ollama image
2
+ FROM ollama/ollama:latest
3
+
4
+ RUN apt-get update && apt-get install -y python3-pip && rm -rf /var/lib/apt/lists/*
5
+
6
+ # Upgrade pip and install Python dependencies
7
+ RUN pip3 install --upgrade pip && \
8
+ pip3 install gradio langchain
9
+
10
+ # Set the working directory and copy your application code
11
+ WORKDIR /app
12
+ COPY . /app
13
+
14
+ # Expose the port Hugging Face Spaces expects
15
+ EXPOSE 8080
16
+
17
+ # Run Gradio app
18
+ CMD ["python3", "app.py"]