Files changed (1) hide show
  1. Dockerfile +13 -4
Dockerfile CHANGED
@@ -1,6 +1,15 @@
1
- FROM node:latest
2
 
3
- COPY . .
4
 
5
- RUN npm install
6
- CMD node index.js
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:22.04
2
 
3
+ ENV DEBIAN_FRONTEND=noninteractive
4
 
5
+ RUN apt update && apt install -y openssh-server
6
+
7
+ RUN mkdir /var/run/sshd
8
+ RUN echo 'root:root' | chpasswd
9
+
10
+ RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
11
+
12
+ COPY start.sh /start.sh
13
+ RUN chmod +x /start.sh
14
+
15
+ CMD ["bash","/start.sh"]