mike dupont commited on
Commit
9e428ff
1 Parent(s): 811e909

run as root

Browse files
Files changed (2) hide show
  1. Dockerfile +4 -6
  2. rundocker.sh +3 -2
Dockerfile CHANGED
@@ -21,10 +21,10 @@ RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf
21
  RUN pip3 install --no-cache-dir -r /app/requirements.txt
22
 
23
  # User
24
- RUN useradd -m -u 1000 user
25
- RUN chmod -R 777 /data
26
- USER user
27
- ENV HOME /home/user
28
  ENV PATH $HOME/.local/bin:$PATH
29
 
30
  WORKDIR $HOME
@@ -32,8 +32,6 @@ RUN mkdir app
32
  WORKDIR $HOME/app
33
  COPY . $HOME/app
34
 
35
- # make writable
36
-
37
 
38
  EXPOSE 8501
39
  CMD streamlit run app.py \
 
21
  RUN pip3 install --no-cache-dir -r /app/requirements.txt
22
 
23
  # User
24
+ #RUN useradd -m -u 1000 user
25
+ #RUN chmod -R 777 /data
26
+ #USER user
27
+ ENV HOME /root
28
  ENV PATH $HOME/.local/bin:$PATH
29
 
30
  WORKDIR $HOME
 
32
  WORKDIR $HOME/app
33
  COPY . $HOME/app
34
 
 
 
35
 
36
  EXPOSE 8501
37
  CMD streamlit run app.py \
rundocker.sh CHANGED
@@ -1,3 +1,4 @@
1
  sudo docker kill streamlit
2
- sudo docker rm streamlit
3
- sudo docker run --name streamlit -v /home/mdupont/2024/02/12/streamlit-docker-lang-agent-introspector/:/home/user/app/ -p 8501:8501 h4ckermike/lang_agent_streamlit_with_data:meta-coq-utils-data-1-2024-02-12
 
 
1
  sudo docker kill streamlit
2
+ sudo docker rm streamlit
3
+ # example for mounting source -v /home/mdupont/2024/02/12/streamlit-docker-lang-agent-introspector/:/home/user/app/
4
+ sudo docker run --name streamlit -p 8501:8501 h4ckermike/lang_agent_streamlit_with_data:meta-coq-utils-data-1-2024-02-12