Al-Alcoba-Inciarte commited on
Commit
535d5e0
Β·
verified Β·
1 Parent(s): 85e4316

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -9
Dockerfile CHANGED
@@ -1,18 +1,21 @@
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 ["python", "app.py"]
 
1
+ # Use the official Ollama image as the base
2
  FROM ollama/ollama:latest
3
 
4
+ USER root
5
 
6
+ # Install Python, pip, and any other dependencies you need
7
+ RUN apt-get update && apt-get install -y python3 python3-pip && rm -rf /var/lib/apt/lists/*
8
+
9
+ RUN pip3 install --upgrade pip
10
+ RUN pip3 install gradio langchain
11
+
12
+ # Overwrite the default entrypoint
13
+ ENTRYPOINT []
14
 
 
15
  WORKDIR /app
16
  COPY . /app
17
 
18
+ # Expose the port that Hugging Face Spaces expects
19
+ EXPOSE 7860
20
 
 
21
  CMD ["python", "app.py"]