coollsd commited on
Commit
4bfedf4
·
verified ·
1 Parent(s): 515097c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -2
Dockerfile CHANGED
@@ -11,5 +11,10 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
11
 
12
  COPY --chown=user . /code/
13
 
14
- # Use exec form of CMD for proper signal handling
15
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--proxy-headers"]
 
 
 
 
 
 
11
 
12
  COPY --chown=user . /code/
13
 
14
+ # Make the start script executable
15
+ USER root
16
+ RUN chmod +x /code/start.sh
17
+ USER user
18
+
19
+ # Use the start script as the entry point
20
+ CMD ["/bin/bash", "/code/start.sh"]