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

41 lines
1.1 KiB
Docker
Raw Permalink Normal View History

2018-11-09 01:14:57 +00:00
# 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 \
2018-11-09 04:21:29 +00:00
&& apt-get install -y --allow-unauthenticated magicka openssh-server binkd supervisor inotify-tools \
2018-11-09 01:14:57 +00:00
&& 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/
2018-11-09 04:21:29 +00:00
ADD ticproc.ini /opt/magicka/etc/magicka/
ADD *.sh /opt/magicka/bin/
2018-11-09 01:14:57 +00:00
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"]