Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +7 -3
Dockerfile
CHANGED
|
@@ -116,10 +116,14 @@ RUN chmod -R 777 /app
|
|
| 116 |
|
| 117 |
USER admin
|
| 118 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 119 |
# Generate SSH keys
|
| 120 |
-
RUN ssh-keygen -t rsa -b 2048 -f /etc/ssh/ssh_host_rsa_key -N "" -y && \
|
| 121 |
-
ssh-keygen -t ecdsa -b 256 -f /etc/ssh/ssh_host_ecdsa_key -N "" -y && \
|
| 122 |
-
ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N "" -y
|
| 123 |
|
| 124 |
|
| 125 |
# Copy the start.sh script
|
|
|
|
| 116 |
|
| 117 |
USER admin
|
| 118 |
|
| 119 |
+
RUN yes y | ssh-keygen -t rsa -b 2048 -f /etc/ssh/ssh_host_rsa_key -N "" && \
|
| 120 |
+
yes y | ssh-keygen -t ecdsa -b 256 -f /etc/ssh/ssh_host_ecdsa_key -N "" && \
|
| 121 |
+
yes y | ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N ""
|
| 122 |
+
|
| 123 |
# Generate SSH keys
|
| 124 |
+
#RUN ssh-keygen -t rsa -b 2048 -f /etc/ssh/ssh_host_rsa_key -N "" -y && \
|
| 125 |
+
# ssh-keygen -t ecdsa -b 256 -f /etc/ssh/ssh_host_ecdsa_key -N "" -y && \
|
| 126 |
+
# ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N "" -y
|
| 127 |
|
| 128 |
|
| 129 |
# Copy the start.sh script
|