lwdgit commited on
Commit
daa22ec
·
1 Parent(s): 9b7e07c
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -6,8 +6,12 @@ WORKDIR /app
6
 
7
  ADD app.py requirements.txt /app
8
 
9
- RUN chmod -R 777 /root/.cache /root/.config/matplotlib /usr/local/lib/python3.7/
 
 
 
10
 
11
  EXPOSE 7860
12
 
13
- CMD ["python", "app.py"]
 
 
6
 
7
  ADD app.py requirements.txt /app
8
 
9
+ # RUN adduser --disabled-password --gecos '' --shell /bin/bash user
10
+ RUN echo 'root:root' | chpasswd
11
+ RUN usermod -g root user
12
+ RUN chown -R user:root /root /usr/local/
13
 
14
  EXPOSE 7860
15
 
16
+ CMD ["python", "app.py"]
17
+ # sh -c "sleep 1; echo root" | script -qc 'su -c whoami - root'