|
|
@ -20,13 +20,13 @@ RUN chmod 777 /bin/nethack |
|
|
|
RUN mkdir /hack/ |
|
|
|
RUN mkdir /hack/ |
|
|
|
|
|
|
|
|
|
|
|
# update ssh config |
|
|
|
# update ssh config |
|
|
|
RUN echo "AllowUsers hack" >> /etc/ssh/sshd_config |
|
|
|
RUN echo "AllowUsers nethack" >> /etc/ssh/sshd_config |
|
|
|
RUN echo "PermitEmptyPasswords yes" >> /etc/ssh/sshd_config |
|
|
|
RUN echo "PermitEmptyPasswords yes" >> /etc/ssh/sshd_config |
|
|
|
|
|
|
|
|
|
|
|
# add hack user |
|
|
|
# add hack user |
|
|
|
RUN useradd hack -d / -s /nethack-launcher |
|
|
|
RUN useradd nethack -d / -s /nethack-launcher |
|
|
|
RUN echo 'hack:U6aMy0wojraho' | chpasswd -e |
|
|
|
RUN echo 'nethack:U6aMy0wojraho' | chpasswd -e |
|
|
|
RUN chown -R hack /hack/ |
|
|
|
RUN chown -R nethack /hack/ |
|
|
|
|
|
|
|
|
|
|
|
# build ttyrec |
|
|
|
# build ttyrec |
|
|
|
RUN git clone https://github.com/ovh/ovh-ttyrec && \ |
|
|
|
RUN git clone https://github.com/ovh/ovh-ttyrec && \ |
|
|
|