abhay2245 commited on
Commit
b0a80f3
Β·
verified Β·
1 Parent(s): 10ae913

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -11
Dockerfile CHANGED
@@ -8,19 +8,12 @@ RUN chmod +x installer.sh && bash installer.sh
8
 
9
  COPY . /root/TeamUltroid
10
  WORKDIR /root/TeamUltroid
11
-
12
- # Fix all permissions first
13
- RUN chmod -R 777 /root/TeamUltroid
14
-
15
  ENV PYTHONPATH="/root/TeamUltroid:$PYTHONPATH"
 
16
  RUN pip install flask
17
 
18
  EXPOSE 7860
19
 
20
- # Create and run startup script inline without permission issues
21
- RUN echo -e '#!/bin/bash\ncd /root/TeamUltroid\nbash startup &\npython -c "from flask import Flask; app=Flask(__name__); app.add_url_rule(\\"/\\", \\"home\\", lambda: \\"<h1>Ultroid Running</h1>\\"); app.run(host=\\"0.0.0.0\\", port=7860)"' > /root/TeamUltroid/start.sh
22
-
23
- # Make sure it's executable
24
- RUN chmod 777 /root/TeamUltroid/start.sh
25
-
26
- CMD ["bash", "/root/TeamUltroid/start.sh"]
 
8
 
9
  COPY . /root/TeamUltroid
10
  WORKDIR /root/TeamUltroid
11
+ RUN chmod -R 755 .
 
 
 
12
  ENV PYTHONPATH="/root/TeamUltroid:$PYTHONPATH"
13
+
14
  RUN pip install flask
15
 
16
  EXPOSE 7860
17
 
18
+ # Skip the shell script entirely - run commands directly
19
+ CMD bash -c "bash startup & python -c \"from flask import Flask; app=Flask(__name__); app.add_url_rule('/', 'home', lambda: '<h1>Ultroid Running</h1>'); app.run(host='0.0.0.0', port=7860)\""