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.
mbse/Dockerfile

58 lines
1.6 KiB
Docker
Raw Permalink Normal View History

2019-04-07 05:36:28 +00:00
# NAME leenooks/mbse
# VERSION 1.0.7.12
FROM debian:stretch-slim
RUN apt-get update \
&& apt-get install -y \
curl python-pip supervisor xinetd telnetd openssh-server webfs procps less \
zip tar arj unrar-free lhasa arc zoo lrzsz unzip logrotate joe \
&& rm -rf /var/lib/apt/lists/* /tmp/*
RUN mkdir -p /run/sshd
# Add in Leenooks' apt repository
RUN curl -s http://apt.leenooks.net/setup.sh | sh
RUN apt-get update \
&& apt-get install --allow-unauthenticated -yqq mbse makenl goldedplus \
&& rm -rf /var/lib/apt/lists/* /tmp/*
ENV MBSE_ROOT /opt/mbse
WORKDIR ${MBSE_ROOT}
RUN mkdir ${MBSE_ROOT}/template; \
for dir in share home etc var log tmp ftp html; do \
mv ${MBSE_ROOT}/${dir} ${MBSE_ROOT}/template; \
ln -s data/${dir} ${MBSE_ROOT}/${dir}; \
done
EXPOSE 23 80 24554 60177 60179
VOLUME [ "${MBSE_ROOT}/data" ]
COPY python-mbse /root/python-mbse
RUN cd /root/python-mbse; pip install .
COPY xinetd.d /etc/xinetd.d
COPY supervisord.d /etc/supervisor/conf.d/
COPY logrotate.d /etc/logrotate.d/
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf", "-n"]
COPY mbse.cron /etc/cron.d/mbse
COPY golded.sh /usr/bin
COPY init /sbin/init
ENTRYPOINT [ "/sbin/init" ]
RUN ln -sf /usr/share/zoneinfo/Australia/Melbourne /etc/localtime
# Add ZeroTier
RUN echo "deb http://download.zerotier.com/debian/stretch stretch main" > /etc/apt/sources.list.d/zerotier.list
COPY zt-gpg-key /tmp/
RUN apt-key add /tmp/zt-gpg-key
RUN apt-get update \
&& apt-get install -yq zerotier-one \
&& rm -rf /var/lib/apt/lists/* /tmp/*
VOLUME [ "/var/lib/zerotier-one" ]