2022-05-08 07:56:39 +00:00
|
|
|
FROM node:14-buster-slim
|
2021-02-19 19:06:07 +00:00
|
|
|
|
2021-02-19 19:11:34 +00:00
|
|
|
LABEL maintainer="dave@force9.org"
|
2021-02-19 19:06:07 +00:00
|
|
|
|
|
|
|
ENV NVM_DIR /root/.nvm
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
COPY . /enigma-bbs
|
|
|
|
|
2022-01-25 21:30:38 +00:00
|
|
|
# Do some installing! (and alot of cleaning up) keeping it in one step for less docker layers
|
|
|
|
# - if you need to debug i recommend to break the steps with individual RUNs)
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y \
|
2021-02-19 19:06:07 +00:00
|
|
|
git \
|
|
|
|
curl \
|
|
|
|
build-essential \
|
|
|
|
python \
|
2022-01-26 11:08:58 +00:00
|
|
|
python3 \
|
2021-02-19 19:06:07 +00:00
|
|
|
libssl-dev \
|
|
|
|
lrzsz \
|
|
|
|
arj \
|
|
|
|
lhasa \
|
|
|
|
unrar-free \
|
|
|
|
p7zip-full \
|
2023-08-26 15:37:12 +00:00
|
|
|
dos2unix \
|
2022-01-25 21:30:38 +00:00
|
|
|
&& npm install -g pm2 \
|
2022-01-26 11:10:03 +00:00
|
|
|
&& cd /enigma-bbs && npm install --only=production \
|
2022-01-25 21:30:38 +00:00
|
|
|
&& pm2 start main.js \
|
2022-01-26 11:10:03 +00:00
|
|
|
&& mkdir -p /enigma-bbs-pre/art \
|
2022-01-25 21:30:38 +00:00
|
|
|
&& mkdir /enigma-bbs-pre/mods \
|
|
|
|
&& mkdir /enigma-bbs-pre/config \
|
|
|
|
&& cp -rp art/* ../enigma-bbs-pre/art/ \
|
|
|
|
&& cp -rp mods/* ../enigma-bbs-pre/mods/ \
|
|
|
|
&& cp -rp config/* ../enigma-bbs-pre/config/ \
|
2022-01-26 10:13:41 +00:00
|
|
|
&& apt-get remove build-essential python python3 libssl-dev git curl -y \
|
2022-01-25 21:30:38 +00:00
|
|
|
&& apt-get autoremove -y \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
|
|
|
|
&& apt-get clean
|
2021-02-19 19:06:07 +00:00
|
|
|
|
|
|
|
# sexyz
|
|
|
|
COPY docker/bin/sexyz /usr/local/bin
|
2023-08-26 15:37:12 +00:00
|
|
|
RUN dos2unix /enigma-bbs/docker/bin/docker-entrypoint.sh && apt-get remove dos2unix -y
|
2022-01-25 22:44:39 +00:00
|
|
|
RUN chmod +x /enigma-bbs/docker/bin/docker-entrypoint.sh
|
2021-02-19 19:06:07 +00:00
|
|
|
|
2022-01-25 21:30:38 +00:00
|
|
|
# enigma storage mounts
|
|
|
|
VOLUME /enigma-bbs/art
|
|
|
|
VOLUME /enigma-bbs/config
|
|
|
|
VOLUME /enigma-bbs/db
|
|
|
|
VOLUME /enigma-bbs/filebase
|
|
|
|
VOLUME /enigma-bbs/logs
|
|
|
|
VOLUME /enigma-bbs/mods
|
|
|
|
VOLUME /mail
|
|
|
|
|
2021-02-19 19:06:07 +00:00
|
|
|
# Enigma default port
|
|
|
|
EXPOSE 8888
|
|
|
|
|
|
|
|
WORKDIR /enigma-bbs
|
|
|
|
|
2022-05-08 07:56:39 +00:00
|
|
|
ENTRYPOINT ["/enigma-bbs/docker/bin/docker-entrypoint.sh"]
|