# NAME leenooks/magicka # VERSION 0.12-4 FROM debian:stretch-slim MAINTAINER Deon George # Pre-requisites # + Base application requires unzip zip curl RUN apt-get update \ && apt-get install -yqq unzip zip curl \ && rm -rf /var/lib/apt/lists/* /tmp/* # Set timezone to Melbourne RUN ln -sf /usr/share/zoneinfo/Australia/Melbourne /etc/localtime # Add in Leenooks' apt repository RUN curl -s http://apt.leenooks.net/setup.sh | sh RUN apt-get update \ && apt-get install -y --allow-unauthenticated magicka openssh-server binkd supervisor \ && apt-get -y autoremove \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* #3 ADD binkd.conf /opt/magicka/etc/ ADD magimail.prefs /opt/magicka/etc/ ADD magitoss.sh /opt/magicka/bin RUN ln -sf magitoss.sh /opt/magicka/bin/magiscan.sh WORKDIR /opt/magicka EXPOSE 22 23 80 24554 COPY init /sbin/init COPY supervisord.d /etc/supervisor/conf.d/ VOLUME [ "/opt/magicka/data" ] ENTRYPOINT [ "/sbin/init" ] CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf", "-n"]