KingOfThoughtFleuren commited on
Commit
ad194e1
·
verified ·
1 Parent(s): 403377c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -5
Dockerfile CHANGED
@@ -42,11 +42,10 @@ RUN mkdir -p /data/Memories /data/My_AI_Library && \
42
  chown -R 1000:1000 /data /app && \
43
  chmod -R 777 /data
44
 
45
- # Switch back to the architecture's primary identity
46
- USER 1000
 
47
 
48
- # Expose the interface port
49
  EXPOSE 7860
50
 
51
- # Boot sequence: Hard-coded to the 3.11 binary
52
- CMD ["/usr/local/bin/python3.11", "app.py"]
 
42
  chown -R 1000:1000 /data /app && \
43
  chmod -R 777 /data
44
 
45
+ USER root
46
+ RUN printf '#!/bin/bash\nchmod -R 777 /data 2>/dev/null || true\nmkdir -p /data/Memories /data/My_AI_Library\nchmod -R 777 /data\nexec su aetherius -c "/usr/local/bin/python3.11 /app/app.py"\n' > /entrypoint.sh && \
47
+ chmod +x /entrypoint.sh
48
 
 
49
  EXPOSE 7860
50
 
51
+ CMD ["/bin/bash", "/entrypoint.sh"]