rahulreshma commited on
Commit
513b886
·
verified ·
1 Parent(s): 3b307cf

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -4,6 +4,9 @@ RUN echo test
4
  RUN apt update && apt install -y python3 python3-pip python3-venv sudo htop
5
  #USER root
6
  #CMD python3 -m http.server
 
 
 
7
  RUN echo $(pwd)
8
  RUN ls -al
9
  WORKDIR /app
@@ -16,4 +19,5 @@ RUN ls -l test
16
  RUN $(pwd)/test/bin/pip install -r requirements.txt
17
 
18
  RUN chmod +x start.sh
 
19
  CMD ["./start.sh"]
 
4
  RUN apt update && apt install -y python3 python3-pip python3-venv sudo htop
5
  #USER root
6
  #CMD python3 -m http.server
7
+ RUN adduser --disabled-password --gecos '' --shell /bin/bash user \
8
+ && chown -R user:user /app
9
+ USER user
10
  RUN echo $(pwd)
11
  RUN ls -al
12
  WORKDIR /app
 
19
  RUN $(pwd)/test/bin/pip install -r requirements.txt
20
 
21
  RUN chmod +x start.sh
22
+ USER root
23
  CMD ["./start.sh"]