diff --git a/deps/Dockerfile b/deps/Dockerfile index 2219170..1dc7510 100644 --- a/deps/Dockerfile +++ b/deps/Dockerfile @@ -10,6 +10,7 @@ RUN apt-get update && \ bsdmainutils \ flex \ gcc \ + gdb \ git \ groff \ libncursesw5-dev \ @@ -30,8 +31,13 @@ RUN apt-get clean # RUN git clone https://github.com/NetHack/NetHack.git RUN cd NetHack && \ + sed -i 's/#ifndef SYSCF/#ifdef SYSCF/g' include/config.h && \ sys/unix/setup.sh sys/unix/hints/linux && \ - make all + sed -i '/POSTINSTALL=/d' Makefile && \ + sed -i 's/.*-DSYSCF -DSYSCF_FILE=.*/CFLAGS+=-DSECURE/' Makefile && \ + cat Makefile && \ + make all && \ + make install RUN find /* -name nethack RUN chmod 777 /NetHack/sys/unix/sysconf