xTHExBEASTx commited on
Commit
db75d73
·
verified ·
1 Parent(s): 5310824

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -1,21 +1,21 @@
1
  FROM ollama/ollama:latest
2
 
3
- # Reset the entrypoint so it doesn't force everything through the 'ollama' binary
4
  ENTRYPOINT []
5
 
6
  # Install Python and Pip
7
  RUN apt-get update && apt-get install -y python3 python3-pip
8
 
9
- # Install dependencies with the system bypass flag
10
- RUN pip3 install fastapi uvicorn --break-system-packages
11
 
12
  # Copy and set up your application
13
  COPY app.py /app/app.py
14
  WORKDIR /app
15
 
16
- # Expose the ports for Hugging Face (7860) and Ollama (11434)
17
  EXPOSE 7860
18
  EXPOSE 11434
19
 
20
- # Start your Python script as the main process
21
- CMD ["python3", "app.py"]
 
1
  FROM ollama/ollama:latest
2
 
3
+ # Reset the entrypoint
4
  ENTRYPOINT []
5
 
6
  # Install Python and Pip
7
  RUN apt-get update && apt-get install -y python3 python3-pip
8
 
9
+ # Added 'httpx' to the installation list
10
+ RUN pip3 install fastapi uvicorn httpx --break-system-packages
11
 
12
  # Copy and set up your application
13
  COPY app.py /app/app.py
14
  WORKDIR /app
15
 
16
+ # Expose the ports
17
  EXPOSE 7860
18
  EXPOSE 11434
19
 
20
+ # Start your Python script
21
+ CMD ["python3", "app.py"]