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

53 lines
1.5 KiB
Docker
Raw Normal View History

# NAME leenooks/mysticbbs
2019-04-07 13:03:49 +00:00
# VERSION 1.12a43
2018-08-29 14:33:58 +00:00
FROM debian:stretch-slim
MAINTAINER Deon George <deon@leenooks.net>
# Pre-requisites
2018-08-29 14:33:58 +00:00
# + Base application requires unzip zip curl libhunspell-dev libpython2.7
RUN apt-get update \
2019-02-03 00:24:41 +00:00
&& apt-get install -yqq unzip zip curl libhunspell-dev libpython2.7 patch \
&& rm -rf /var/lib/apt/lists/* /tmp/*
2018-08-29 14:33:58 +00:00
# Add in Leenooks' apt repository
2018-09-02 23:28:02 +00:00
RUN curl -s http://apt.leenooks.net/setup.sh | sh
2018-08-29 14:33:58 +00:00
2018-09-02 23:28:02 +00:00
# For SSH connections
2018-08-29 14:33:58 +00:00
RUN apt-get update \
2019-02-03 00:24:41 +00:00
&& apt-get install --allow-unauthenticated -yqq libcl \
2018-08-29 14:33:58 +00:00
&& rm -rf /var/lib/apt/lists/* /tmp/*
2019-06-21 07:15:22 +00:00
RUN ln -sf /usr/share/zoneinfo/Australia/Melbourne /etc/localtime && echo 'Australia/Melbourne' > /etc/timezone
WORKDIR /mystic
ENV mysticbbs /mystic/data
EXPOSE 22 23 24554
ADD mystic.tar.gz /
VOLUME ["/mystic/data"]
2018-09-14 11:17:16 +00:00
# Enable custom scripts to live in the data dir
RUN ln -sf ../data/scripts /mystic/scripts/custom
2019-02-03 00:24:41 +00:00
# Fix temp locations
RUN ln -s data/tempftn /mystic/tempftn && ln -s data/tempmis /mystic/tempmis && ln -s data/temputil /mystic/temputil
2019-04-07 13:03:49 +00:00
# Add ZeroTier
RUN apt-get update \
&& apt-get install -yqq gnupg1 \
&& rm -rf /var/lib/apt/lists/* /tmp/*
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" ]
2019-02-03 00:24:41 +00:00
COPY init /sbin/init
ENTRYPOINT [ "/sbin/init" ]
CMD [ "start" ]