Dockerfile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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
  4. FROM debian:stretch
  5. # Prerequisites. Current version of python-django is a bit too recent
  6. # for the rpki-ca GUI, but rpki-rp only uses the ORM, which hasn't
  7. # broken backwards compatability (yet?).
  8. RUN apt-get --yes update && apt-get --yes install --no-install-recommends \
  9. apache2 \
  10. bsdmainutils \
  11. ca-certificates \
  12. cron \
  13. postgresql \
  14. postgresql-client \
  15. python \
  16. python-django \
  17. python-lxml \
  18. python-psycopg2 \
  19. python-pycurl \
  20. python-tornado \
  21. rrdtool \
  22. rsyslog \
  23. rsync \
  24. ssl-cert \
  25. sudo \
  26. xinetd
  27. # Install rpki-rp package downloaded by makefile, but defer
  28. # configuration until the container comes up.
  29. COPY startup.sh rpki-rp_*.deb /root/
  30. RUN dpkg --unpack /root/rpki-rp_*.deb && rm -f /root/rpki-rp_*.deb
  31. # Container startup, execs cron on top of itself when done
  32. CMD [ "/root/startup.sh" ]
  33. # Expose web and rpki-rtr ports. The HTTPS port is probably not very
  34. # useful unless you stuff a valid certificate into the image.
  35. EXPOSE 80 443 323