FROM freeradius/freeradius-server:latest # update package manager RUN apt-get update -y && \ apt-get upgrade -y && \ apt-get dist-upgrade -y && \ apt-get -y autoremove && \ apt-get clean # generate SSL snakeoil for freeradius RUN apt-get -y install ssl-cert && \ make-ssl-cert generate-default-snakeoil # install helper tools RUN apt-get -y install \ inotify-tools \ bash \ supervisor # add filesystem requirements COPY raddb/ /etc/raddb/ ADD rootfs / # specify the volume mountpoint VOLUME /data # expose FreeRADIUS ports EXPOSE 1812-1813:1812-1813/udp # start supervisord to monitor processes ENTRYPOINT [ "supervisord", "-t", "-n", "-c", "/etc/supervisor.conf" ]