diff --git a/Dockerfile b/Dockerfile index a712df8..d10fba2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]