40 lines
1.0 KiB
Docker
40 lines
1.0 KiB
Docker
# NAME leenooks/mysticbbs
|
|
# VERSION 1.12a42
|
|
|
|
FROM debian:stretch-slim
|
|
|
|
MAINTAINER Deon George <deon@leenooks.net>
|
|
|
|
# Pre-requisites
|
|
# + Base application requires unzip zip curl libhunspell-dev libpython2.7
|
|
RUN apt-get update \
|
|
&& apt-get install -yqq unzip zip curl libhunspell-dev libpython2.7 patch \
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/*
|
|
|
|
# Add in Leenooks' apt repository
|
|
RUN curl -s http://apt.leenooks.net/setup.sh | sh
|
|
|
|
# For SSH connections
|
|
RUN apt-get update \
|
|
&& apt-get install --allow-unauthenticated -yqq libcl \
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/*
|
|
|
|
RUN ln -sf /usr/share/zoneinfo/Australia/Melbourne /etc/localtime
|
|
|
|
WORKDIR /mystic
|
|
ENV mysticbbs /mystic/data
|
|
EXPOSE 22 23 24554
|
|
|
|
ADD mystic.tar.gz /
|
|
VOLUME ["/mystic/data"]
|
|
|
|
# Enable custom scripts to live in the data dir
|
|
RUN ln -sf ../data/scripts /mystic/scripts/custom
|
|
|
|
# Fix temp locations
|
|
RUN ln -s data/tempftn /mystic/tempftn && ln -s data/tempmis /mystic/tempmis && ln -s data/temputil /mystic/temputil
|
|
|
|
COPY init /sbin/init
|
|
ENTRYPOINT [ "/sbin/init" ]
|
|
CMD [ "start" ]
|