This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
magicka/Dockerfile
2018-11-09 15:21:29 +11:00

41 lines
1.1 KiB
Docker

# NAME leenooks/magicka
# VERSION 0.12-4
FROM debian:stretch-slim
MAINTAINER Deon George <deon@leenooks.net>
# 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 inotify-tools \
&& 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 ticproc.ini /opt/magicka/etc/magicka/
ADD *.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"]