2022-01-25 10:12:05 +00:00
|
|
|
FROM node:12-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
|
|
|
|
|
2022-01-24 22:47:25 +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
|
|
|
COPY . /enigma-bbs
|
|
|
|
|
|
|
|
# Do some installing!
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
git \
|
|
|
|
curl \
|
|
|
|
build-essential \
|
2022-01-24 23:08:35 +00:00
|
|
|
python3 \
|
2021-02-19 19:06:07 +00:00
|
|
|
python \
|
|
|
|
libssl-dev \
|
|
|
|
lrzsz \
|
|
|
|
arj \
|
|
|
|
lhasa \
|
|
|
|
unrar-free \
|
|
|
|
p7zip-full \
|
|
|
|
&& npm install -g pm2 \
|
|
|
|
&& cd /enigma-bbs && npm install --only=production \
|
|
|
|
&& apt-get remove build-essential python libssl-dev git curl -y && apt-get autoremove -y \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
|
|
|
|
&& apt-get clean
|
|
|
|
|
|
|
|
# sexyz
|
|
|
|
COPY docker/bin/sexyz /usr/local/bin
|
|
|
|
|
|
|
|
# Enigma default port
|
|
|
|
EXPOSE 8888
|
|
|
|
|
|
|
|
WORKDIR /enigma-bbs
|
|
|
|
|
|
|
|
CMD ["pm2-runtime", "main.js"]
|