limitedonly41 commited on
Commit
1fd504a
·
verified ·
1 Parent(s): 245649f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -13,8 +13,8 @@ COPY requirements.txt .
13
  # Install Python dependencies
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
16
- # Copy the entire app directory
17
- COPY ./app ./app
18
 
19
  # Expose port 7860 (required by Hugging Face Spaces)
20
  EXPOSE 7860
@@ -23,7 +23,7 @@ EXPOSE 7860
23
  RUN echo '#!/bin/bash\n\
24
  redis-server --daemonize yes\n\
25
  sleep 2\n\
26
- uvicorn app.main:app --host 0.0.0.0 --port 7860\n\
27
  ' > /start.sh && chmod +x /start.sh
28
 
29
  # Run the startup script
 
13
  # Install Python dependencies
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
16
+ # Copy only main.py (code will be downloaded from model repo)
17
+ COPY main.py .
18
 
19
  # Expose port 7860 (required by Hugging Face Spaces)
20
  EXPOSE 7860
 
23
  RUN echo '#!/bin/bash\n\
24
  redis-server --daemonize yes\n\
25
  sleep 2\n\
26
+ python main.py\n\
27
  ' > /start.sh && chmod +x /start.sh
28
 
29
  # Run the startup script