Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -15,7 +15,10 @@ RUN useradd -u 1000 xd
|
|
15 |
RUN echo 'xd:xd' | chpasswd
|
16 |
|
17 |
# Generar claves de host SSH
|
18 |
-
RUN
|
|
|
|
|
|
|
19 |
|
20 |
EXPOSE 7860
|
21 |
|
|
|
15 |
RUN echo 'xd:xd' | chpasswd
|
16 |
|
17 |
# Generar claves de host SSH
|
18 |
+
RUN sed -ri 's/^#?PermitRootLogin\s+.*/PermitRootLogin yes/' /etc/ssh/sshd_config
|
19 |
+
RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config
|
20 |
+
RUN mkdir /root/.ssh
|
21 |
+
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
22 |
|
23 |
EXPOSE 7860
|
24 |
|