Dockerfile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Given that this is security software, you might want to consider
  2. # generating your own debian:stretch base image using debbootstrap
  3. # rather than trusting Dockerhub, see "base" target in the Makefile.
  4. ARG DIST=debian
  5. ARG CODE=stretch
  6. FROM $DIST:$CODE
  7. # Prerequisites. Current version of python-django is a bit too recent
  8. # for the rpki-ca GUI, but rpki-rp only uses the ORM, which hasn't
  9. # broken backwards compatability (yet?).
  10. RUN apt-get --yes update && apt-get --yes install --no-install-recommends \
  11. apache2 \
  12. bsdmainutils \
  13. ca-certificates \
  14. cron \
  15. postgresql \
  16. postgresql-client \
  17. python \
  18. python-django \
  19. python-lxml \
  20. python-psycopg2 \
  21. python-pycurl \
  22. python-tornado \
  23. rrdtool \
  24. rsyslog \
  25. rsync \
  26. ssl-cert \
  27. sudo \
  28. xinetd
  29. # Install rpki-rp package downloaded by makefile, but defer
  30. # configuration until the container comes up.
  31. COPY startup.sh rpki-rp_*.deb /root/
  32. RUN dpkg --unpack /root/rpki-rp_*.deb && rm -f /root/rpki-rp_*.deb
  33. # Container startup, execs cron on top of itself when done
  34. CMD [ "/root/startup.sh" ]
  35. # Expose web and rpki-rtr ports. The HTTPS port is probably not very
  36. # useful unless you stuff a valid certificate into the image.
  37. EXPOSE 80 443 323