Добавлена установка и настройка ssh для внутр. отладки (закомментировано)
This commit is contained in:
parent
dff9e6dd3e
commit
7c7e6f189c
@ -9,15 +9,23 @@ RUN set -xe \
|
||||
&& apk add --no-cache \
|
||||
--repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ \
|
||||
openconnect \
|
||||
# && apk add --no-cache openssh-server \
|
||||
# && mkdir -p /var/run/sshd \
|
||||
# && echo 'root:Shokoladki20' | chpasswd \
|
||||
# && sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config \
|
||||
&& mkdir -p /etc/openconnect \
|
||||
&& touch /etc/openconnect/openconnect.conf
|
||||
|
||||
|
||||
COPY scripts/connect.sh /root
|
||||
RUN chmod +x /root/connect.sh
|
||||
#RUN ssh-keygen -A
|
||||
|
||||
HEALTHCHECK --start-period=15s --retries=1 \
|
||||
CMD pgrep openconnect || exit 1; pgrep dnsmasq || exit 1
|
||||
|
||||
#EXPOSE 22
|
||||
|
||||
#CMD ["sh" , "-c", "/usr/sbin/sshd && sh /root/connect.sh -D && ip addr && route -n && sh && tail -f /dev/null"]
|
||||
CMD ["sh" , "-c", "sh /root/connect.sh -D && ip addr && route -n && sh && tail -f /dev/null"]
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user