privateone commited on
Commit
0729033
·
verified ·
1 Parent(s): 541fbc9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -4
Dockerfile CHANGED
@@ -41,10 +41,13 @@ RUN apt-get update && \
41
  # echo 'ubuntu:password' | chpasswd && \
42
 
43
  RUN useradd -m -u 1000 admin && \
44
- echo "admin:password" | chpasswd
 
 
 
45
 
46
- ENV HOME =/home/admin &&\
47
- PATH =/home/admin/.local/bin:$PATH
48
  # usermod -aG sudo admin && \
49
  # echo "admin ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
50
 
@@ -91,7 +94,8 @@ RUN yes y | ssh-keygen -t rsa -b 2048 -f /etc/ssh/ssh_host_rsa_key -N "" && \
91
  yes y | ssh-keygen -t ecdsa -b 256 -f /etc/ssh/ssh_host_ecdsa_key -N "" && \
92
  yes y | ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N "" && \
93
  ssh-keygen -Hf /etc/ssh/ssh_known_hosts && \
94
- chmod -R 755 /etc/ssh/*
 
95
  #ssh-keyscan -p 2222 0.0.0.0 >> /etc/ssh/ssh_known_hosts
96
 
97
 
 
41
  # echo 'ubuntu:password' | chpasswd && \
42
 
43
  RUN useradd -m -u 1000 admin && \
44
+ echo "admin:password" | chpasswd &&\
45
+ usermod -aG sudo admin && \
46
+ echo "admin ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
47
+
48
 
49
+ #ENV HOME =/home/admin &&\
50
+ # PATH =/home/admin/.local/bin:$PATH
51
  # usermod -aG sudo admin && \
52
  # echo "admin ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
53
 
 
94
  yes y | ssh-keygen -t ecdsa -b 256 -f /etc/ssh/ssh_host_ecdsa_key -N "" && \
95
  yes y | ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N "" && \
96
  ssh-keygen -Hf /etc/ssh/ssh_known_hosts && \
97
+ chmod -R 755 /etc/ssh/* && \
98
+ cat /etc/ssh/ssh_host_rsa_key
99
  #ssh-keyscan -p 2222 0.0.0.0 >> /etc/ssh/ssh_known_hosts
100
 
101