You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.4KB

  1. # focal 2020.01 dev
  2. FROM ubuntu@sha256:d050ed7278c16ff627e4a70d7d353f1a2ec74d8a0b66e5a865356d92f5f6d87b
  3. ENV DEBIAN_FRONTEND noninteractive
  4. #ARG UBUNTU_MIRROR=http://archive.ubuntu.com/ubuntu
  5. #RUN echo "deb $UBUNTU_MIRROR focal main universe restricted multiverse" > /etc/apt/sources.list.new && \
  6. #echo "deb $UBUNTU_MIRROR focal-updates main universe restricted multiverse" >> /etc/apt/sources.list.new && \
  7. #echo "deb $UBUNTU_MIRROR focal-security main universe restricted multiverse" >> /etc/apt/sources.list.new && \
  8. #echo "deb $UBUNTU_MIRROR focal-backports main universe restricted multiverse" >> /etc/apt/sources.list.new && \
  9. #mv /etc/apt/sources.list.new /etc/apt/sources.list
  10. COPY ./root /tmp/rootoverlay
  11. COPY ./run.sh /tmp/run.sh
  12. # we only install essential system packages here
  13. ARG SYSTEM_PACKAGES="build-essential ca-certificates openssh-server git golang rsync runit"
  14. RUN \
  15. apt update && \
  16. apt -y upgrade && \
  17. apt -y install $SYSTEM_PACKAGES && \
  18. rsync -avP /tmp/rootoverlay/ / && \
  19. rm -rf /tmp/rootoverlay && \
  20. chmod +x /etc/service/*/run && \
  21. go get -v -u git.eeqj.de/sneak/runsvinit && \
  22. cp /root/go/bin/runsvinit /usr/local/sbin/runsvinit && \
  23. rm -r /root/go && \
  24. /bin/bash /tmp/run.sh && \
  25. rm -f /tmp/run.sh
  26. # /var/log is distro-default stuff, /var/logs is ours.
  27. VOLUME /var/logs
  28. EXPOSE 514
  29. EXPOSE 514/udp
  30. # RELP:
  31. EXPOSE 20514
  32. CMD ["/usr/local/sbin/runsvinit"]