|
|
@ -10,6 +10,7 @@ RUN apt-get update && \ |
|
|
|
bsdmainutils \ |
|
|
|
bsdmainutils \ |
|
|
|
flex \ |
|
|
|
flex \ |
|
|
|
gcc \ |
|
|
|
gcc \ |
|
|
|
|
|
|
|
gdb \ |
|
|
|
git \ |
|
|
|
git \ |
|
|
|
groff \ |
|
|
|
groff \ |
|
|
|
libncursesw5-dev \ |
|
|
|
libncursesw5-dev \ |
|
|
@ -30,8 +31,13 @@ RUN apt-get clean |
|
|
|
# |
|
|
|
# |
|
|
|
RUN git clone https://github.com/NetHack/NetHack.git |
|
|
|
RUN git clone https://github.com/NetHack/NetHack.git |
|
|
|
RUN cd NetHack && \ |
|
|
|
RUN cd NetHack && \ |
|
|
|
|
|
|
|
sed -i 's/#ifndef SYSCF/#ifdef SYSCF/g' include/config.h && \ |
|
|
|
sys/unix/setup.sh sys/unix/hints/linux && \ |
|
|
|
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 find /* -name nethack |
|
|
|
RUN chmod 777 /NetHack/sys/unix/sysconf |
|
|
|
RUN chmod 777 /NetHack/sys/unix/sysconf |
|
|
|
|
|
|
|
|
|
|
|