Added sample Dockerfile for dev environment

This commit is contained in:
cheezedoodle2
2023-06-06 05:25:45 -07:00
parent e250606726
commit 1203e03e2b
5 changed files with 19 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
FROM ubuntu
RUN apt update
RUN apt install -y openssh-server
RUN mkdir /var/run/sshd
RUN echo 'root:password' | chpasswd
RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
RUN sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config
ADD authorized_keys /root/.ssh/authorized_keys
RUN chmod 600 /root/.ssh/authorized_keys
EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]
+1
View File
@@ -0,0 +1 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCpXelnFwuVHcdbHjrvcChhxiBzXmAOPb43Yhb5W+ix93YS/TaWuDSLUxf1l1XAy45ESgMzI0GxMXakVoT5Ns0yrKgpk4ZJRlVGV03SJEwHL80JaQzjXXuo5fFE/CpaNJJHmtzobE1uzs8yz0qkd12iY4yCZvzelazarJNhy/jSFrXJZuVh2jvxkr4SpHQg9VBOJMaDH2cF9s6a45wtjXJz2sUsaLyRIhWGA78xpS6u9gxWX1IZXCcl6TMEktSv503QKQI8YitWOuGr4CkhBlrg9aMhQu6bxDzep0UQVfn2sIwj1m8+bO+mzYI6hHo2odeQtTVcoby0/duYNiWugHO6nkUvvlmYUHonUFs+v68ZO8VJvvQwTMnfnPouY/46WNimQBVTdxU8rSgeHWkvZ1jYE5P2++Ba8zSAf4F8Gk8EEwq+OcFv2IP1Diyn0K21qJG3IllYS863uAPvQBHnKh3rDF6r5rvGN6tJMK7l0R6DvCF1s0g/Thq3GWBp7FlRXL8= 2021-1
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
docker build -t dev .