Update Dockerfile
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
|
@@ -19,6 +19,12 @@ if [ -z "$(ls -A /data/ssh_host)" ]; then\n\
|
|
| 19 |
else\n\
|
| 20 |
cp -r /data/ssh_host/* /etc/ssh/\n\
|
| 21 |
fi\n\
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
/usr/sbin/sshd\n\
|
| 23 |
cd /tmp && python3 -m http.server 7860 &\n\
|
| 24 |
MINI_PID=$!\n\
|
|
|
|
| 19 |
else\n\
|
| 20 |
cp -r /data/ssh_host/* /etc/ssh/\n\
|
| 21 |
fi\n\
|
| 22 |
+
mkdir -p /data/root_home\n\
|
| 23 |
+
if [ ! -L /root ]; then\n\
|
| 24 |
+
cp -a /root/. /data/root_home/\n\
|
| 25 |
+
rm -rf /root\n\
|
| 26 |
+
ln -s /data/root_home /root\n\
|
| 27 |
+
fi\n\
|
| 28 |
/usr/sbin/sshd\n\
|
| 29 |
cd /tmp && python3 -m http.server 7860 &\n\
|
| 30 |
MINI_PID=$!\n\
|