You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
FROM debian
|
|
|
|
|
|
|
|
# install needed packages
|
|
|
|
RUN apt-get update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
|
|
|
ttyrec \
|
|
|
|
nethack-console \
|
|
|
|
redis-server \
|
|
|
|
openssh-server \
|
|
|
|
vim
|
|
|
|
|
|
|
|
# make required dirs
|
|
|
|
RUN mkdir -p /redisbackup/
|
|
|
|
|
|
|
|
# update nethack bin location
|
|
|
|
RUN mv /usr/games/nethack /bin/nethack
|
|
|
|
RUN mkdir /hack/
|
|
|
|
|
|
|
|
# update ssh config
|
|
|
|
RUN echo "AllowUsers hack" >> /etc/ssh/sshd_config
|
|
|
|
RUN echo "PermitEmptyPasswords yes" >> /etc/ssh/sshd_config
|
|
|
|
|
|
|
|
# add hack user
|
|
|
|
RUN useradd hack -s /nethack-launcher
|
|
|
|
RUN echo 'hack:U6aMy0wojraho' | chpasswd -e
|
|
|
|
RUN chown -R hack /hack/
|
|
|
|
|
|
|
|
# copy in files
|
|
|
|
COPY config.gcfg /
|
|
|
|
COPY nethack-launcher /
|
|
|
|
COPY redis.conf /
|
|
|
|
COPY run.sh /
|
|
|
|
COPY nethackrc /hack/.nethackrc
|
|
|
|
|
|
|
|
CMD ["/run.sh"]
|