Add Enigma BBS deployment files
Some checks failed
Build and Push Docker Image / build (push) Has been cancelled

This commit is contained in:
capitano
2026-04-07 18:19:11 +02:00
parent 3089316a25
commit f138e4a28f
8 changed files with 16 additions and 327 deletions

View File

@@ -11,7 +11,7 @@ ENV NVM_DIR /root/.nvm
ENV DEBIAN_FRONTEND noninteractive
# Install APT and NPM packages
# Clone repo and build
RUN apt-get update \
&& apt-get install -y \
git \
@@ -30,30 +30,27 @@ RUN apt-get update \
&& npm install -g pm2
COPY . /enigma-bbs/
WORKDIR /enigma-bbs
# Install npm dependencies
RUN cd /enigma-bbs && npm install
# Prepare files
RUN dos2unix /enigma-bbs/docker/bin/docker-entrypoint.sh \
&& apt-get remove dos2unix -y \
# Clone Enigma and install
RUN git clone --depth 1 https://github.com/NuSkooler/enigma-bbs.git /enigma-bbs \
&& cd /enigma-bbs && npm install \
&& dos2unix /enigma-bbs/docker/bin/docker-entrypoint.sh \
&& chmod +x /enigma-bbs/docker/bin/docker-entrypoint.sh \
&& cp -f /enigma-bbs/docker/bin/sexyz /usr/local/bin \
&& mkdir -p /enigma-bbs-pre/art \
&& mkdir /enigma-bbs-pre/mods \
&& mkdir /enigma-bbs-pre/config \
&& cp -rp /enigma-bbs/art/* ../enigma-bbs-pre/art/ \
&& cp -rp /enigma-bbs/mods/* ../enigma-bbs-pre/mods/ \
&& cp -rp /enigma-bbs/config/* ../enigma-bbs-pre/config/ \
&& cp -f /enigma-bbs/docker/bin/sexyz /usr/local/bin
# Setup staging directories with dummy SSH key
RUN mkdir -p /enigma-bbs-pre/art \
&& mkdir -p /enigma-bbs-pre/mods \
&& mkdir -p /enigma-bbs-pre/config/security \
&& cp -rp /enigma-bbs/art/* /enigma-bbs-pre/art/ \
&& cp -rp /enigma-bbs/mods/* /enigma-bbs-pre/mods/ \
&& cp -rp /enigma-bbs/config/* /enigma-bbs-pre/config/ \
&& touch /enigma-bbs-pre/config/security/ssh_private_key.pem \
&& apt-get remove build-essential python3 libssl-dev git curl dos2unix -y \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& apt-get clean
# enigma storage mounts
# Volumes
VOLUME /enigma-bbs/art
VOLUME /enigma-bbs/config
VOLUME /enigma-bbs/db
@@ -62,7 +59,6 @@ VOLUME /enigma-bbs/logs
VOLUME /enigma-bbs/mods
VOLUME /mail
# Enigma default port
EXPOSE 8888 44510 44511
WORKDIR /enigma-bbs