Dockerfile_proxy 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. FROM debian:stretch-slim as build
  2. WORKDIR /root
  3. # RUN apt-get update; apt-get -y install wget build-essential manpages-dev unzip;
  4. RUN export http_proxy=http://192.168.254.83:3142 \
  5. && apt-get update && apt-get -y install wget build-essential unzip
  6. ADD ./cryptlib345.zip cryptlib345.zip
  7. RUN unzip -a cryptlib345.zip; \
  8. make shared; \
  9. mv /root/libcl.so.3.4.5 /lib/libcl.so
  10. FROM debian:stretch-slim
  11. # Allow for UID to be set
  12. ARG UID=1000
  13. 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
  14. # ADD ./libcl.so /lib/libcl.so
  15. # ADD ./libcl.so.3.4.4 /lib/libcl.so
  16. RUN export http_proxy=http://192.168.254.83:3142 \
  17. && dpkg --add-architecture i386 \
  18. && apt-get update \
  19. && apt-get -y upgrade \
  20. && apt-get install -y dosemu libc6:i386 procps libhunspell-dev vim mc zip python libpython2.7 less sudo cgroup-bin python3 python3-venv elinks \
  21. && useradd -u ${UID} -ms /bin/bash mystic
  22. # fixup dosemu
  23. USER mystic
  24. RUN mkdir -p ~/.dosemu/drives && \
  25. cd ~/.dosemu/drives && \
  26. ln -s /home/mystic/.dosemu/drive_c c && \
  27. ln -s /usr/lib/dosemu/drive_z d
  28. USER root
  29. COPY --from=build /lib/libcl.so /lib/libcl.so
  30. ADD ./bootup.sh /bootup.sh
  31. # Need to remain root so script can setup cgroups / then
  32. # it can run ./startup.sh as mystic.
  33. # USER mystic
  34. WORKDIR /home/mystic/mystic/bbs
  35. # ENV DISPLAY=:1
  36. # ENV LC_ALL=en_UTF-8
  37. ENTRYPOINT ["/bootup.sh"]
  38. # ENTRYPOINT ./startup.sh