destinyebuka commited on
Commit
c6eb8cb
·
1 Parent(s): be98df1
Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
  # ============================================================
2
- # Dockerfile - For Render Deployment
3
  # ============================================================
4
 
5
  FROM python:3.11-slim
@@ -26,11 +26,11 @@ RUN useradd -m appuser && chown -R appuser:appuser /app
26
  USER appuser
27
 
28
  # Expose port
29
- EXPOSE 8000
30
 
31
  # Health check
32
  HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
33
- CMD python -c "import requests; requests.get('http://localhost:8000/health')"
34
 
35
  # Run application
36
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
 
1
  # ============================================================
2
+ # Dockerfile - For Hugging Face Spaces / container deployment
3
  # ============================================================
4
 
5
  FROM python:3.11-slim
 
26
  USER appuser
27
 
28
  # Expose port
29
+ EXPOSE 7860
30
 
31
  # Health check
32
  HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
33
+ CMD python -c "import os, requests; requests.get('http://localhost:%s/health' % os.getenv('PORT', '7860'))"
34
 
35
  # Run application
36
+ CMD ["sh", "-c", "uvicorn main:app --host 0.0.0.0 --port ${PORT:-7860}"]
README.md CHANGED
@@ -3,10 +3,7 @@ title: AIDA
3
  emoji: 🏠
4
  colorFrom: pink
5
  colorTo: purple
6
- sdk: gradio
7
- sdk_version: 6.0.0
8
- python_version: "3.11"
9
- app_file: app.py
10
  pinned: false
11
  license: mit
12
  short_description: AI assistant for the Lojiz platform
 
3
  emoji: 🏠
4
  colorFrom: pink
5
  colorTo: purple
6
+ sdk: docker
 
 
 
7
  pinned: false
8
  license: mit
9
  short_description: AI assistant for the Lojiz platform
__pycache__/main.cpython-313.pyc CHANGED
Binary files a/__pycache__/main.cpython-313.pyc and b/__pycache__/main.cpython-313.pyc differ
 
app/routes/__pycache__/listing.cpython-313.pyc CHANGED
Binary files a/app/routes/__pycache__/listing.cpython-313.pyc and b/app/routes/__pycache__/listing.cpython-313.pyc differ