alvin3y commited on
Commit
a7bc255
·
verified ·
1 Parent(s): 47de195

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -6,9 +6,11 @@ FROM python:3.9
6
 
7
  RUN apt update
8
  RUN DEBIAN_FRONTEND=noninteractive apt-get -yq install sudo sshpass dropbear
9
-
 
10
  RUN echo "root:alvin" | chpasswd
11
 
12
  COPY . /app
13
  WORKDIR /app
 
14
  CMD ["python", "server.py"]
 
6
 
7
  RUN apt update
8
  RUN DEBIAN_FRONTEND=noninteractive apt-get -yq install sudo sshpass dropbear
9
+ RUN useradd -m -u 1000 user \ && echo "user:alvin" | chpasswd
10
+ RUN chown -R user:user /
11
  RUN echo "root:alvin" | chpasswd
12
 
13
  COPY . /app
14
  WORKDIR /app
15
+ USER user
16
  CMD ["python", "server.py"]