123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- FROM debian:stretch-slim as build
- WORKDIR /root
- # RUN apt-get update; apt-get -y install wget build-essential manpages-dev unzip;
- # RUN export http_proxy=http://192.168.254.83:3142 \
- 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
- # Allow for UID to be set
- 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
- # ADD ./libcl.so /lib/libcl.so
- # ADD ./libcl.so.3.4.4 /lib/libcl.so
- # RUN export http_proxy=http://192.168.254.83:3142 \
- 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
- # fixup dosemu
- 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
- # Need to remain root so script can setup cgroups / then
- # it can run ./startup.sh as mystic.
- # USER mystic
- WORKDIR /home/mystic/mystic/bbs
- # ENV DISPLAY=:1
- # ENV LC_ALL=en_UTF-8
- ENTRYPOINT ["/bootup.sh"]
- # ENTRYPOINT ./startup.sh
|