123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- FROM debian:stretch-slim as build
- WORKDIR /root
- RUN apt-get update && apt-get -y install wget build-essential unzip
- ADD ./cryptlib345.zip cryptlib345.zip
- RUN unzip -a cryptlib345.zip; \
- make shared; \
- mv /root/libcl.so.3.4.5 /lib/libcl.so
- FROM debian:stretch-slim
- ARG UID=1000
- RUN sed -i "s#deb http://deb.debian.org/debian stretch main#deb http://deb.debian.org/debian stretch main contrib non-free#g" /etc/apt/sources.list
- RUN dpkg --add-architecture i386 \
- && apt-get update \
- && apt-get -y upgrade \
- && apt-get install -y dosemu libc6:i386 procps libhunspell-dev vim mc zip python libpython2.7 less sudo cgroup-bin python3 python3-venv elinks \
- && useradd -u ${UID} -ms /bin/bash mystic
- USER mystic
- RUN mkdir -p ~/.dosemu/drives && \
- cd ~/.dosemu/drives && \
- ln -s /home/mystic/.dosemu/drive_c c && \
- ln -s /usr/lib/dosemu/drive_z d
- USER root
- COPY --from=build /lib/libcl.so /lib/libcl.so
- ADD ./bootup.sh /bootup.sh
- WORKDIR /home/mystic/mystic/bbs
- ENTRYPOINT ["/bootup.sh"]
|