hisham-cmd commited on
Commit
d35ecf2
·
verified ·
1 Parent(s): 6701970

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -18,6 +18,9 @@ RUN pip install --no-cache-dir -r requirements.txt
18
  # Copy the rest of the application code into the container
19
  COPY . .
20
 
 
 
 
21
  # Hugging Face Spaces runs as user with UID 1000
22
  # Grant ownership of /app so SQLite DB can be created and written
23
  RUN useradd -m -u 1000 appuser && chown -R appuser:appuser /app
@@ -31,5 +34,5 @@ ENV PYTHONUNBUFFERED=1
31
  ENV HOST=0.0.0.0
32
  ENV PORT=7860
33
 
34
- # Command to run the application
35
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
18
  # Copy the rest of the application code into the container
19
  COPY . .
20
 
21
+ # Make start script executable
22
+ RUN chmod +x start.sh
23
+
24
  # Hugging Face Spaces runs as user with UID 1000
25
  # Grant ownership of /app so SQLite DB can be created and written
26
  RUN useradd -m -u 1000 appuser && chown -R appuser:appuser /app
 
34
  ENV HOST=0.0.0.0
35
  ENV PORT=7860
36
 
37
+ # Use startup script for better diagnostics
38
+ CMD ["./start.sh"]