Yahir commited on
Commit
6ba1188
·
1 Parent(s): b149a8a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -1,7 +1,7 @@
1
  FROM debian:11
2
 
3
  RUN apt update
4
- RUN apt install -y cmake make gcc g++ git curl sudo
5
  RUN curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash -
6
  RUN apt install -y nodejs
7
  RUN npm i -g yarn
@@ -9,10 +9,10 @@ RUN yarn global add wetty
9
 
10
  RUN echo 'root:root' | chpasswd
11
  # Crear usuario con UID 1000
12
- RUN useradd -u 1000 myuser
13
 
14
  # Establecer contraseña para el usuario
15
- RUN echo 'myuser:mypassword' | chpasswd
16
  EXPOSE 7860
17
 
18
- CMD ["wetty", "-p 7860", "--allow-remote-hosts"]
 
1
  FROM debian:11
2
 
3
  RUN apt update
4
+ RUN apt install -y cmake make gcc g++ git curl sudo openssh-server
5
  RUN curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash -
6
  RUN apt install -y nodejs
7
  RUN npm i -g yarn
 
9
 
10
  RUN echo 'root:root' | chpasswd
11
  # Crear usuario con UID 1000
12
+ RUN useradd -u 1000 xd
13
 
14
  # Establecer contraseña para el usuario
15
+ RUN echo 'xd:xd' | chpasswd
16
  EXPOSE 7860
17
 
18
+ CMD ["sshd","wetty", "-p 7860", "--allow-remote-hosts"]