oulh commited on
Commit
f40550b
1 Parent(s): 3e252c1
Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -1,6 +1,7 @@
1
  FROM ubuntu:20.04
2
 
3
  RUN useradd -m -u 1000 leo && \
 
4
  apt update && \
5
  apt install -y sudo && \
6
  echo "leo ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
@@ -12,7 +13,6 @@ WORKDIR $HOME
12
  EXPOSE 80
13
  # COPY start.sh /root/start.sh
14
  # set password
15
- RUN sudo echo "leo:zxcvbnm" | chpasswd
16
  # init
17
  RUN sudo apt update && sudo apt install openssh-server nginx -y
18
  # /etc/init.d/ssh start
 
1
  FROM ubuntu:20.04
2
 
3
  RUN useradd -m -u 1000 leo && \
4
+ echo "leo:zxcvbnm" | chpasswd && \
5
  apt update && \
6
  apt install -y sudo && \
7
  echo "leo ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
 
13
  EXPOSE 80
14
  # COPY start.sh /root/start.sh
15
  # set password
 
16
  # init
17
  RUN sudo apt update && sudo apt install openssh-server nginx -y
18
  # /etc/init.d/ssh start