sahilmayekar commited on
Commit
e5ee3ad
·
1 Parent(s): 1f33d1f

Initial Commit

Browse files
Files changed (3) hide show
  1. Dockerfile +1 -1
  2. entrypoint.sh +1 -2
  3. src/app.py +3 -0
Dockerfile CHANGED
@@ -38,7 +38,7 @@ USER ollama
38
 
39
  ENV OLLAMA_HOST=0.0.0.0:11434
40
 
41
- EXPOSE 11434 7860
42
 
43
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
44
 
 
38
 
39
  ENV OLLAMA_HOST=0.0.0.0:11434
40
 
41
+ EXPOSE 11434 5001
42
 
43
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
44
 
entrypoint.sh CHANGED
@@ -11,5 +11,4 @@ ollama pull nomic-embed-text:latest
11
 
12
  ollama pull gpt-oss:20b || true
13
 
14
- python3 -c "from pyngrok import ngrok; print('🌐 Public Ollama URL:', ngrok.connect(7860, 'http'))" &
15
- uvicorn .src/app:app --host 0.0.0.0 --port 7860
 
11
 
12
  ollama pull gpt-oss:20b || true
13
 
14
+ python3 .src/app.py
 
src/app.py CHANGED
@@ -5,3 +5,6 @@ app = FastAPI()
5
  @app.get("/")
6
  def greet_json():
7
  return {"Hello": "World!"}
 
 
 
 
5
  @app.get("/")
6
  def greet_json():
7
  return {"Hello": "World!"}
8
+
9
+
10
+ app.run(host='0.0.0.0', port=5001)